File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,9 @@ plugins {
77 application
88 signing
99 jacoco
10+ id(" io.github.gradle-nexus.publish-plugin" ) version " 2.0.0"
1011}
1112
12- repositories {
13- mavenCentral()
14- }
1513
1614java {
1715 sourceCompatibility = JavaVersion .VERSION_1_8
@@ -126,13 +124,14 @@ publishing {
126124 }
127125 }
128126 }
129- repositories {
130- maven {
131- name = " ossrh"
132- url = uri(" https://oss.sonatype.org/service/local/staging/deploy/maven2" )
133- credentials(PasswordCredentials ::class )
127+ }
128+ nexusPublishing {
129+ repositories {
130+ create(" myNexus" ) {
131+ nexusUrl.set(uri(" https://ossrh-staging-api.central.sonatype.com/service/local/" ))
132+ snapshotRepositoryUrl.set(uri(" https://central.sonatype.com/repository/maven-snapshots" ))
133+ }
134134 }
135- }
136135}
137136
138137signing {
You can’t perform that action at this time.
0 commit comments