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 0536dd5 commit 5574a90Copy full SHA for 5574a90
build.gradle
@@ -22,6 +22,11 @@ def getReleaseRepositoryUrl() {
22
: "https://ossrh-staging-api.central.sonatype.com/service/local/"
23
}
24
25
+def getSnapshotRepositoryUrl() {
26
+ return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
27
+ : "https://central.sonatype.com/repository/maven-snapshots/"
28
+}
29
+
30
def getRepositoryUsername() {
31
return hasProperty('nexusUsername') ? nexusUsername : ""
32
@@ -35,6 +40,7 @@ nexusPublishing {
35
40
repositories {
36
41
maven {
37
42
nexusUrl.set(uri(getReleaseRepositoryUrl()))
43
+ snapshotRepositoryUrl.set(uri(getSnapshotRepositoryUrl()))
38
44
username = getRepositoryUsername()
39
45
password = getRepositoryPassword()
46
stagingProfileId = STAGING_PROFILE_ID
0 commit comments