File tree Expand file tree Collapse file tree 2 files changed +12
-29
lines changed Expand file tree Collapse file tree 2 files changed +12
-29
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ buildscript {
11
11
plugins {
12
12
id ' java-platform'
13
13
id ' com.github.kt3k.coveralls' version ' 2.12.0'
14
- id ' io.codearte. nexus-staging ' version ' 0.30 .0'
14
+ id ' io.github.gradle- nexus.publish-plugin ' version ' 1.1 .0'
15
15
id ' io.franzbecker.gradle-lombok' version ' 4.0.0'
16
16
}
17
17
@@ -27,10 +27,15 @@ project.ext.publishEnabled = !isCiBuild &&
27
27
project. hasProperty(' ossrhUsername' ) && project. hasProperty(' ossrhPassword' )
28
28
29
29
if (publishEnabled) {
30
- nexusStaging {
31
- username = ossrhUsername
32
- password = ossrhPassword
33
- stagingProfileId = ' 6c61426e6529d'
30
+ nexusPublishing {
31
+ repositories {
32
+ sonatype {
33
+ stagingProfileId = ' 6c61426e6529d'
34
+
35
+ username = ossrhUsername
36
+ password = ossrhPassword
37
+ }
38
+ }
34
39
}
35
40
}
36
41
@@ -258,17 +263,6 @@ subprojects { project ->
258
263
}
259
264
}
260
265
}
261
-
262
- repositories {
263
- maven {
264
- name = " sonatypeNexus"
265
- url = " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
266
- credentials {
267
- username ossrhUsername
268
- password ossrhPassword
269
- }
270
- }
271
- }
272
266
}
273
267
274
268
signing {
@@ -319,17 +313,6 @@ if (publishEnabled) {
319
313
}
320
314
}
321
315
}
322
-
323
- repositories {
324
- maven {
325
- name = " sonatypeNexus"
326
- url = " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
327
- credentials {
328
- username ossrhUsername
329
- password ossrhPassword
330
- }
331
- }
332
- }
333
316
}
334
317
335
318
signing {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Release candidate versions
25
25
5. Publish to Sonatype Nexus:
26
26
27
27
```
28
- $ ./gradlew publish closeAndReleaseRepository
28
+ $ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
29
29
```
30
30
31
31
6. Wait for the artifacts to become downloadable at
@@ -112,7 +112,7 @@ Release versions
112
112
9. Publish to Sonatype Nexus:
113
113
114
114
```
115
- $ ./gradlew publish closeAndReleaseRepository
115
+ $ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
116
116
```
117
117
118
118
10. Wait for the artifacts to become downloadable at
You can’t perform that action at this time.
0 commit comments