File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ plugins {
22 id(" java" )
33 `maven- publish`
44 signing
5+ id(" org.danilopianini.publish-on-central" ) version " 8.0.6"
56 id(" me.champeau.jmh" ) version " 0.7.3"
67}
78
@@ -118,21 +119,14 @@ publishing {
118119 password = System .getenv(" GPR_KEY" )
119120 }
120121 }
121-
122- maven {
123- url = if (rootProject.version.toString().endsWith(" SNAPSHOT" )) {
124- uri(" https://s01.oss.sonatype.org/content/repositories/snapshots" )
125- } else {
126- uri(" https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" )
127- }
128- credentials {
129- username = System .getenv(" MAVEN_CENTRAL_USERNAME" )
130- password = System .getenv(" MAVEN_CENTRAL_PASSWORD" )
131- }
132- }
133122 }
134123}
135124
125+ publishOnCentral {
126+ mavenCentral.user.set(System .getenv(" MAVEN_CENTRAL_USERNAME" ))
127+ mavenCentral.password.set(System .getenv(" MAVEN_CENTRAL_PASSWORD" ))
128+ }
129+
136130signing {
137131 useInMemoryPgpKeys(
138132 System .getenv(" SIGNING_KEY_ID" ),
You can’t perform that action at this time.
0 commit comments