Skip to content

Commit

Permalink
Configured correct sonatype urls
Browse files Browse the repository at this point in the history
j.bebendorf committed Jun 24, 2022
1 parent b22e7d3 commit 0d8d207
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -5,9 +5,11 @@ plugins {
id 'signing'
}

String VERSION = System.getenv('BUILD_VERSION')?.replace("v", "") ?: "v1.0.0-SNAPSHOT".replace("v", "")

subprojects {
group = 'com.lumaserv'
version = System.getenv('BUILD_VERSION')?.replace("v", "") ?: "v1.0.0-SNAPSHOT".replace("v", "")
version = VERSION
}

nexusPublishing {
@@ -19,6 +21,9 @@ nexusPublishing {
stagingProfileId = "6785d1237ee803"
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
useStaging.set(provider {
VERSION.endsWith("-SNAPSHOT")
})
}
}
}

0 comments on commit 0d8d207

Please sign in to comment.