We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa37df0 commit 03033e9Copy full SHA for 03033e9
buildSrc/src/main/kotlin/buildsrc/convention/maven-publish.gradle.kts
@@ -16,11 +16,11 @@ val sonatypeRepositoryCredentials: Provider<Action<PasswordCredentials>> =
16
val projectVersion: Provider<String> = provider { project.version.toString() }
17
18
val sonatypeRepositoryReleaseUrl: Provider<String> = projectVersion.map { version ->
19
- val isRelease = version.endsWith("SNAPSHOT")
20
- if (isRelease) {
21
- "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
22
- } else {
+ val isSnapshot = version.endsWith("SNAPSHOT")
+ if (isSnapshot) {
23
"https://s01.oss.sonatype.org/content/repositories/snapshots/"
+ } else {
+ "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
24
}
25
26
0 commit comments