This repository was archived by the owner on Dec 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-19
lines changed Expand file tree Collapse file tree 2 files changed +9
-19
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ plugins {
2424 id " org.springframework.boot" version " $LIB_SPRING_BOOT_VER " apply false
2525 id " org.sonarqube" version " $PLUGIN_SONARQUBE_VER "
2626 id " jacoco"
27- id ' io.codearte. nexus-staging ' version " $P LUGIN_NEXUS_STAGING_VER "
27+ id " io.github.gradle- nexus.publish-plugin " version " $P LUGIN_NEXUS_PUBLISH_VER "
2828}
2929
3030sonarqube {
@@ -188,26 +188,16 @@ subprojects {
188188 }
189189 }
190190 }
191- repositories {
192- maven {
193- name ' ossrh'
194- if (version. toString(). endsWith(" -SNAPSHOT" )) {
195- url " https://oss.sonatype.org/content/repositories/snapshots/"
196- } else {
197- url " https://oss.sonatype.org/service/local/staging/deploy/maven2"
198- }
199- credentials {
200- username = System . env. OSS_USER_TOKEN_KEY ?: project. findProperty(' OSS_USER_TOKEN_KEY' ) ?: ' '
201- password = System . env. OSS_USER_TOKEN_PASS ?: project. findProperty(' OSS_USER_TOKEN_PASS' ) ?: ' '
202- }
203- }
204- }
205191 }
206192}
207193
208- nexusStaging {
209- username = System . env. OSS_USER_TOKEN_KEY ?: project. findProperty(' OSS_USER_TOKEN_KEY' ) ?: ' '
210- password = System . env. OSS_USER_TOKEN_PASS ?: project. findProperty(' OSS_USER_TOKEN_PASS' ) ?: ' '
194+ nexusPublishing {
195+ repositories {
196+ sonatype {
197+ username = System . env. OSS_USER_TOKEN_KEY ?: project. findProperty(' OSS_USER_TOKEN_KEY' ) ?: ' '
198+ password = System . env. OSS_USER_TOKEN_PASS ?: project. findProperty(' OSS_USER_TOKEN_PASS' ) ?: ' '
199+ }
200+ }
211201}
212202
213203wrapper {
Original file line number Diff line number Diff line change @@ -42,5 +42,5 @@ LIB_JSOUP_VER=1.15.2
4242# ## Plugins
4343PLUGIN_JACOCO_VER =0.8.7
4444PLUGIN_SONARQUBE_VER =3.4.0.2513
45- PLUGIN_NEXUS_STAGING_VER = 0.30 .0
45+ PLUGIN_NEXUS_PUBLISH_VER = 1.1 .0
4646PLUGIN_GOOGLE_JAVA_FORMAT_VER =0.9
You can’t perform that action at this time.
0 commit comments