Skip to content

Commit 7e7b484

Browse files
build: publish Snapshots on commit
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 2f0366b commit 7e7b484

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,11 @@ publishing {
536536
def releasesRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
537537
def snapshotsRepoUrl= "https://oss.sonatype.org/service/local/staging/deploy/maven2"
538538
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
539-
credentials(PasswordCredentials)
539+
//credentials(PasswordCredentials)
540+
credentials {
541+
username = System.getenv("ossrhUsername")
542+
password = System.getenv("ossrhPassword")
543+
}
540544
}
541545
// maven {
542546
// name = "GitHubPackages"

0 commit comments

Comments
 (0)