Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a36d11e

Browse filesBrowse files
authored
Fix nexus publishing script
1 parent 3b64470 commit a36d11e
Copy full SHA for a36d11e

File tree

Expand file treeCollapse file tree

8 files changed

+18
-71
lines changed
Filter options
Expand file treeCollapse file tree

8 files changed

+18
-71
lines changed

‎build.gradle

Copy file name to clipboardExpand all lines: build.gradle
+17Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import groovy.json.JsonSlurper
22

3+
plugins {
4+
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
5+
}
6+
37
allprojects {
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+
1229
tasks.create('createTestSubAccount') {
1330
doFirst {
1431
println("Task createTestSubAccount called with module $moduleName")

‎cloudinary-core/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-core/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
task 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")

‎cloudinary-http42/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-http42/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

‎cloudinary-http43/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-http43/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

‎cloudinary-http44/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-http44/build.gradle
+1-11Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

‎cloudinary-http45/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-http45/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

‎cloudinary-taglib/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-taglib/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

‎cloudinary-test-common/build.gradle

Copy file name to clipboardExpand all lines: cloudinary-test-common/build.gradle
-10Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

98
apply 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")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.