@@ -4,27 +4,16 @@ plugins {
44 id ' java-library'
55 id ' maven-publish'
66 id ' com.diffplug.spotless' version ' 6.25.0'
7- id ' nu.studer.credentials' version ' 3.0'
87 id ' org.asciidoctor.jvm.convert' version ' 4.0.2' apply false
98 id ' io.github.gradle-nexus.publish-plugin' version ' 1.3.0'
109}
1110
1211ext {
13- // Credentials can be specified on the command-line using project properties,
14- // or stored locally using the gradle-credentials-plugin.
15- // See below for the name of project properties.
16- // See https://github.com/etiennestuder/gradle-credentials-plugin to store credentials locally.
17- if ( ! project. hasProperty( ' jbossNexusUser' ) ) {
18- jbossNexusUser = credentials. forKey( ' jbossNexusUser' )
19- }
20- if ( ! project. hasProperty( ' jbossNexusPassword' ) ) {
21- jbossNexusPassword = credentials. forKey( ' jbossNexusPassword' )
22- }
2312 if ( ! project. hasProperty( ' sonatypeOssrhUser' ) ) {
24- sonatypeOssrhUser = credentials . forKey( ' sonatypeOssrhUser ' )
13+ sonatypeOssrhUser = null
2514 }
2615 if ( ! project. hasProperty( ' sonatypeOssrhPassword' ) ) {
27- sonatypeOssrhPassword = credentials . forKey( ' sonatypeOssrhPassword ' )
16+ sonatypeOssrhPassword = null
2817 }
2918}
3019
9584}
9685
9786// To release, see task ciRelease in release/build.gradle
98-
99- // To publish snapshots:
100- // ./gradlew publishToJBossNexus closeAndReleaseJBossNexusStagingRepository -PjbossNexusUser="<YOUR USERNAME>" -PjbossNexusPassword="<YOUR PASSWORD>"
101-
10287// To publish on Sonatype (Maven Central):
10388// ./gradlew publishToSonatype closeAndReleaseStagingRepository -PsonatypeOssrhUser="<YOUR USERNAME>" -PsonatypeOssrhPassword="<YOUR PASSWORD>"
10489nexusPublishing {
@@ -107,11 +92,6 @@ nexusPublishing {
10792 username = project. sonatypeOssrhUser
10893 password = project. sonatypeOssrhPassword
10994 }
110- jBossNexus {
111- snapshotRepositoryUrl = uri(' https://repository.jboss.org/nexus/content/repositories/snapshots' )
112- username = project. jbossNexusUser
113- password = project. jbossNexusPassword
114- }
11595 }
11696}
11797
0 commit comments