File tree Expand file tree Collapse file tree 8 files changed +18
-71
lines changed
Expand file tree Collapse file tree 8 files changed +18
-71
lines changed Original file line number Diff line number Diff line change 11import groovy.json.JsonSlurper
22
3+ plugins {
4+ id ' io.github.gradle-nexus.publish-plugin' version ' 1.0.0'
5+ }
6+
37allprojects {
48
59 repositories {
@@ -9,6 +13,19 @@ allprojects {
913 project. ext. set(" publishGroupId" , group)
1014}
1115
16+ nexusPublishing {
17+ transitionCheckOptions {
18+ maxRetries. set(150 )
19+ delayBetween. set(Duration . ofSeconds(5 ))
20+ }
21+ repositories {
22+ sonatype {
23+ username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
24+ password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
25+ }
26+ }
27+ }
28+
1229tasks. create(' createTestSubAccount' ) {
1330 doFirst {
1431 println (" Task createTestSubAccount called with module $moduleName " )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98task ciTest ( type : Test )
@@ -87,15 +86,6 @@ if (hasProperty("ossrhPassword")) {
8786 }
8887 }
8988
90- nexusPublishing {
91- repositories {
92- sonatype {
93- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
94- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
95- }
96- }
97- }
98-
9989 model {
10090 tasks. generatePomFileForMavenJavaPublication {
10191 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -100,15 +99,6 @@ if (hasProperty("ossrhPassword")) {
10099 }
101100 }
102101
103- nexusPublishing {
104- repositories {
105- sonatype {
106- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
107- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
108- }
109- }
110- }
111-
112102 model {
113103 tasks. generatePomFileForMavenJavaPublication {
114104 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -99,15 +98,6 @@ if (hasProperty("ossrhPassword")) {
9998 }
10099 }
101100
102- nexusPublishing {
103- repositories {
104- sonatype {
105- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
106- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
107- }
108- }
109- }
110-
111101 model {
112102 tasks. generatePomFileForMavenJavaPublication {
113103 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -98,16 +97,7 @@ if (hasProperty("ossrhPassword")) {
9897 }
9998 }
10099 }
101-
102- nexusPublishing {
103- repositories {
104- sonatype {
105- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
106- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
107- }
108- }
109- }
110-
100+
111101 model {
112102 tasks. generatePomFileForMavenJavaPublication {
113103 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -99,15 +98,6 @@ if (hasProperty("ossrhPassword")) {
9998 }
10099 }
101100
102- nexusPublishing {
103- repositories {
104- sonatype {
105- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
106- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
107- }
108- }
109- }
110-
111101 model {
112102 tasks. generatePomFileForMavenJavaPublication {
113103 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -94,15 +93,6 @@ if (hasProperty("ossrhPassword")) {
9493 }
9594 }
9695
97- nexusPublishing {
98- repositories {
99- sonatype {
100- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
101- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
102- }
103- }
104- }
105-
10696 model {
10797 tasks. generatePomFileForMavenJavaPublication {
10898 destination = file(" $buildDir /generated-pom.xml" )
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ plugins {
33 id ' signing'
44 id ' maven-publish'
55 id ' io.codearte.nexus-staging' version ' 0.21.1'
6- id " de.marcphilipp.nexus-publish" version " 0.4.0"
76}
87
98apply from : " ../java_shared.gradle"
@@ -88,15 +87,6 @@ if (hasProperty("ossrhPassword")) {
8887 }
8988 }
9089
91- nexusPublishing {
92- repositories {
93- sonatype {
94- username = project. hasProperty(" ossrhUsername" ) ? project. ext[" ossrhUsername" ] : " "
95- password = project. hasProperty(" ossrhPassword" ) ? project. ext[" ossrhPassword" ] : " "
96- }
97- }
98- }
99-
10090 model {
10191 tasks. generatePomFileForMavenJavaPublication {
10292 destination = file(" $buildDir /generated-pom.xml" )
You can’t perform that action at this time.
0 commit comments