Skip to content

Commit 05d4e01

Browse files
committed
[#1956] Remove nu.credentials plugin and JBoss Nexus repository
1 parent b252aa6 commit 05d4e01

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

build.gradle

+2-22
Original file line numberDiff line numberDiff line change
@@ -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

1211
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-
}
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

@@ -95,10 +84,6 @@ ext {
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>"
10489
nexusPublishing {
@@ -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

publish.gradle

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
apply plugin: 'maven-publish'
2-
apply plugin: 'nu.studer.credentials'
32

43
task sourcesJar(type: Jar) {
54
from sourceSets.main.allJava

0 commit comments

Comments
 (0)