Skip to content

Commit

Permalink
Revert publishing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Aug 11, 2024
1 parent f8ceadf commit 4b3dc02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Projects.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
}
23 changes: 6 additions & 17 deletions buildSrc/src/main/kotlin/kord-publishing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand All @@ -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)
}

0 comments on commit 4b3dc02

Please sign in to comment.