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 26a11ec commit 576a6c3Copy full SHA for 576a6c3
build.gradle
@@ -30,6 +30,17 @@ java {
30
}
31
32
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
44
publications {
45
maven(MavenPublication) {
46
from components.java
0 commit comments