@@ -4,27 +4,16 @@ plugins {
4
4
id ' java-library'
5
5
id ' maven-publish'
6
6
id ' com.diffplug.spotless' version ' 6.25.0'
7
- id ' nu.studer.credentials' version ' 3.0'
8
7
id ' org.asciidoctor.jvm.convert' version ' 4.0.2' apply false
9
8
id ' io.github.gradle-nexus.publish-plugin' version ' 1.3.0'
10
9
}
11
10
12
11
ext {
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
- }
23
12
if ( ! project. hasProperty( ' sonatypeOssrhUser' ) ) {
24
- sonatypeOssrhUser = credentials . forKey( ' sonatypeOssrhUser ' )
13
+ sonatypeOssrhUser = null
25
14
}
26
15
if ( ! project. hasProperty( ' sonatypeOssrhPassword' ) ) {
27
- sonatypeOssrhPassword = credentials . forKey( ' sonatypeOssrhPassword ' )
16
+ sonatypeOssrhPassword = null
28
17
}
29
18
}
30
19
95
84
}
96
85
97
86
// 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
-
102
87
// To publish on Sonatype (Maven Central):
103
88
// ./gradlew publishToSonatype closeAndReleaseStagingRepository -PsonatypeOssrhUser="<YOUR USERNAME>" -PsonatypeOssrhPassword="<YOUR PASSWORD>"
104
89
nexusPublishing {
@@ -107,11 +92,6 @@ nexusPublishing {
107
92
username = project. sonatypeOssrhUser
108
93
password = project. sonatypeOssrhPassword
109
94
}
110
- jBossNexus {
111
- snapshotRepositoryUrl = uri(' https://repository.jboss.org/nexus/content/repositories/snapshots' )
112
- username = project. jbossNexusUser
113
- password = project. jbossNexusPassword
114
- }
115
95
}
116
96
}
117
97
0 commit comments