Skip to content

Commit 576a6c3

Browse files
author
Gyorgy Mora
committed
repo settings
1 parent 26a11ec commit 576a6c3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@ java {
3030
}
3131

3232
publishing {
33+
repositories {
34+
maven {
35+
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
36+
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
37+
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
38+
credentials {
39+
username = System.getenv("NEXUS_USER")
40+
password = System.getenv("NEXUS_PASSWORD")
41+
}
42+
}
43+
}
3344
publications {
3445
maven(MavenPublication) {
3546
from components.java

0 commit comments

Comments
 (0)