Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class PublishingConventionPlugin : Plugin<Project> {

repositories {
maven {
name = "ossrh-staging-api"
url = if (isReleaseBuild) releaseRepositoryUrl else snapshotRepositoryUrl
credentials {
username = sonatypeUsername
Expand Down Expand Up @@ -148,15 +149,15 @@ class PublishingConventionPlugin : Plugin<Project> {
get() = URI.create(
getPropertyOrDefault(
"RELEASE_REPOSITORY_URL",
"https://aws.oss.sonatype.org/service/local/staging/deploy/maven2/"
"https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/"
)
)

private val Project.snapshotRepositoryUrl: URI
get() = URI.create(
getPropertyOrDefault(
"SNAPSHOT_REPOSITORY_URL",
"https://aws.oss.sonatype.org/content/repositories/snapshots/"
"https://ossrh-staging-api.central.sonatype.com/content/repositories/snapshots/"
)
)

Expand Down