Skip to content

Commit f9164f2

Browse files
marko-bekhtadreab8
authored andcommitted
HHH-19341 Adjust the snapshots publishing config to use username/password env variables
1 parent 0f5f40e commit f9164f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

local-build-plugins/src/main/groovy/local.publishing.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ publishingExtension.repositories {
7070
maven {
7171
name = 'snapshots'
7272
url = "https://oss.sonatype.org/content/repositories/snapshots/"
73+
// So that Gradle uses the `ORG_GRADLE_PROJECT_snapshotsPassword` / `ORG_GRADLE_PROJECT_snapshotsUsername`
74+
// env variables to read the username/password for the `snapshots` repository publishing:
75+
credentials(PasswordCredentials)
7376
}
7477
}
7578

0 commit comments

Comments
 (0)