Skip to content

Commit

Permalink
1.5.8: No more OSSRH!
Browse files Browse the repository at this point in the history
  • Loading branch information
gdude2002 committed Nov 20, 2024
1 parent 5290d48 commit cc7f303
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
9 changes: 9 additions & 0 deletions changes/1.5.8.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Gradle Plugins 1.5.8

This version includes a small change to the KordEx plugin.

## KordEx Plugin

- Switch to Kord's own Maven repo for snapshot resolution.
- This change means the KordEx plugin doesn't rely on OSSRH, and won't break due to its spotty uptime.
- If you need to use the OSSRH repos for other dependencies, you'll now need to add them yourself.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kotlin.incremental=true
org.gradle.jvmargs=-XX:MaxMetaspaceSize=1024m
org.gradle.parallel=true

projectVersion=1.5.7
projectVersion=1.5.8
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ class KordExPlugin @Inject constructor(

target.repo(KORDEX_RELEASES)
target.repo(KORDEX_SNAPSHOTS)
target.repo(S01_BASE)
target.repo(OSS_BASE)
target.repo(KORD_SNAPSHOTS)

val modules = extension.modules.get().normalizeModules(kordExVersion, log = false)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
package dev.kordex.gradle.plugins.kordex

const val CENTRAL_BASE = "https://repo1.maven.org/maven2"
const val OSS_BASE = "https://oss.sonatype.org/content/repositories/snapshots"
const val S01_BASE = "https://s01.oss.sonatype.org/content/repositories/snapshots"
const val KORD_SNAPSHOTS = "https://repo.kord.dev/snapshots"

const val KORDEX_RELEASES = "https://releases-repo.kordex.dev"
const val KORDEX_SNAPSHOTS = "https://snapshots-repo.kordex.dev"
Expand All @@ -20,7 +19,7 @@ const val KORDEX_RELEASES_BASE_V2 = "$KORDEX_RELEASES/dev/kordex/kord-extensions
const val KORDEX_SNAPSHOTS_BASE_V2 = "$KORDEX_SNAPSHOTS/dev/kordex/kord-extensions"

const val KORD_RELEASES_BASE = "$CENTRAL_BASE/dev/kord/kord-core"
const val KORD_SNAPSHOTS_BASE = "$OSS_BASE/dev/kord/kord-core"
const val KORD_SNAPSHOTS_BASE = "$KORD_SNAPSHOTS/dev/kord/kord-core"

fun kordExReleasesUrlv1(path: String) =
"$KORDEX_RELEASES_BASE_V1/$path"
Expand Down
2 changes: 1 addition & 1 deletion testModule/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
plugins {
val pluginVersion = "1.5.7"
val pluginVersion = "1.5.8"

kotlin("jvm") version "2.0.21"

Expand Down

0 comments on commit cc7f303

Please sign in to comment.