diff --git a/buildSrc/src/main/kotlin/Projects.kt b/buildSrc/src/main/kotlin/Projects.kt index 14d33789d2f..be8c41f12ee 100644 --- a/buildSrc/src/main/kotlin/Projects.kt +++ b/buildSrc/src/main/kotlin/Projects.kt @@ -29,5 +29,5 @@ val Project.isRelease get() = tag != null object Repo { const val releasesUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - const val snapshotsUrl = "https://repo.kord.dev/snapshots" + const val snapshotsUrl = "https://oss.sonatype.org/content/repositories/snapshots/" } diff --git a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts index 2d14e99d69c..a001f7113cc 100644 --- a/buildSrc/src/main/kotlin/kord-publishing.gradle.kts +++ b/buildSrc/src/main/kotlin/kord-publishing.gradle.kts @@ -60,23 +60,12 @@ publishing { } repositories { - if(isRelease) { - maven { - url = uri(Repo.releasesUrl) + maven { + url = uri(if (isRelease) Repo.releasesUrl else Repo.snapshotsUrl) - credentials { - username = getenv("NEXUS_USER") - password = getenv("NEXUS_PASSWORD") - } - } - } else { - maven { - url = uri(Repo.snapshotsUrl) - - credentials { - username = getenv("REPOSILITE_USER") - password = getenv("REPOSILITE_PASSWORD") - } + credentials { + username = getenv("NEXUS_USER") + password = getenv("NEXUS_PASSWORD") } } } @@ -86,5 +75,5 @@ signing { val secretKey = getenv("SIGNING_KEY")?.let { String(Base64.getDecoder().decode(it)) } val password = getenv("SIGNING_PASSWORD") useInMemoryPgpKeys(secretKey, password) -// sign(publishing.publications) + sign(publishing.publications) }