Skip to content

Commit 0293104

Browse files
committed
added nexus publish plugin
1 parent 35eba73 commit 0293104

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
id 'java'
33
id 'idea'
44
id 'maven-publish'
5+
id "de.marcphilipp.nexus-publish" version "0.4.0"
56
id 'signing'
67
id 'com.github.sherter.google-java-format' version '0.7.1'
78
id 'io.codearte.nexus-staging' version '0.12.0'
@@ -204,6 +205,17 @@ publishing {
204205
}
205206
}
206207
}
208+
209+
nexusPublishing {
210+
repositories {
211+
myNexus {
212+
nexusUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
213+
snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/")
214+
username = System.getenv('SONATYPE_USERNAME')
215+
password = System.getenv('SONATYPE_PASSWORD')
216+
}
217+
}
218+
}
207219
}
208220

209221
signing {

0 commit comments

Comments
 (0)