We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71a3040 commit 9a166c7Copy full SHA for 9a166c7
1 file changed
buildSrc/src/main/groovy/com.google.api-ads.java-conventions.gradle
@@ -95,7 +95,11 @@ publishing {
95
}
96
repositories {
97
maven {
98
- url 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
+ def releaseRepoUrl = 'https://s01.oss.sonatype.org/service/local/staging/deploy/maven2'
99
+ def snapshotRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
100
+
101
+ // Set the URL dynamically based on the project version
102
+ url = project.version.endsWith('SNAPSHOT') ? snapshotRepoUrl : releaseRepoUrl
103
name = "sonatype"
104
credentials {
105
// Avoids storing Sonatype credentials in plain-text. Specify these on
0 commit comments