Skip to content

Commit cc894a7

Browse files
committed
More publish fixes
1 parent 9ff0cb9 commit cc894a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def getReleaseRepositoryUrl() {
2222
: "https://ossrh-staging-api.central.sonatype.com/service/local/"
2323
}
2424

25-
def getSnapshotRepositoryUrl() {
25+
def getProjectSnapshotRepositoryUrl() {
2626
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL
2727
: "https://central.sonatype.com/repository/maven-snapshots/"
2828
}
@@ -40,7 +40,7 @@ nexusPublishing {
4040
repositories {
4141
maven {
4242
nexusUrl.set(uri(getReleaseRepositoryUrl()))
43-
snapshotRepositoryUrl.set(uri(getSnapshotRepositoryUrl()))
43+
snapshotRepositoryUrl.set(uri(getProjectSnapshotRepositoryUrl()))
4444
username = getRepositoryUsername()
4545
password = getRepositoryPassword()
4646
stagingProfileId = STAGING_PROFILE_ID

0 commit comments

Comments
 (0)