Skip to content

Commit 93f3c22

Browse files
Migrate to publish-plugin (#1287)
1 parent 33adb7a commit 93f3c22

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

build.gradle

+11-14
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import java.time.Duration
33
plugins {
44
id 'java'
55
id 'signing'
6-
id 'io.codearte.nexus-staging' version '0.21.1'
7-
id 'de.marcphilipp.nexus-publish' version '0.4.0'
6+
id 'maven-publish'
7+
id 'io.github.gradle-nexus.publish-plugin' version '2.0.0'
88
}
99

1010
group = "com.gluonhq"
@@ -105,16 +105,13 @@ signing {
105105

106106
nexusPublishing {
107107
repositories {
108-
sonatype()
108+
sonatype {
109+
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
110+
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
111+
}
109112
}
110-
// credentials are shared from staging plugin
111-
clientTimeout = Duration.ofMinutes(5)
112-
connectTimeout = Duration.ofMinutes(5)
113-
}
114-
115-
nexusStaging {
116-
username = project.hasProperty('sonatypeUsername') ? project.property('sonatypeUsername') : ''
117-
password = project.hasProperty('sonatypePassword') ? project.property('sonatypePassword') : ''
118-
numberOfRetries = 30
119-
delayBetweenRetriesInMillis = 10000
120-
}
113+
transitionCheckOptions {
114+
maxRetries = 100
115+
delayBetween = Duration.ofSeconds(10)
116+
}
117+
}

0 commit comments

Comments
 (0)