File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 4242 SIGNING_SECRET_KEY : ${{ secrets.SIGNING_SECRET_KEY }}
4343 SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
4444 run : |
45- ./gradlew publish \
45+ ./gradlew closeAndReleaseStagingRepositories publish \
4646 -Psigning.keyId=$SIGNING_KEY_ID \
4747 -Psigning.secretKey=$SIGNING_SECRET_KEY \
4848 -Psigning.password=$SIGNING_PASSWORD \
Original file line number Diff line number Diff line change 1616
1717plugins {
1818 id ' jacoco'
19+ id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
1920}
2021
2122allprojects {
@@ -62,10 +63,6 @@ subprojects {
6263 compileJava. options. debugOptions. debugLevel = " source,lines,vars" // Include debug information
6364
6465 buildscript { // artifacrory plugin
65- repositories {
66- mavenCentral()
67- gradlePluginPortal()
68- }
6966 configurations. all {
7067 resolutionStrategy. cacheChangingModulesFor 0 , ' seconds'
7168 }
@@ -166,14 +163,14 @@ subprojects {
166163 repositories {
167164 if (sonatype_publish) {
168165 maven {
169- url = " https://oss.sonatype.org/service/local/staging/deploy/maven2 "
166+ url = sonatypeUrl
170167 credentials {
171168 username = ossrhUsername
172169 password = ossrhPassword
173170 }
174171 }
175172 maven {
176- url = " https://oss.sonatype.org/content/repositories/snapshots "
173+ url = sonatypeSnapshotsUrl
177174 credentials {
178175 username = ossrhUsername
179176 password = ossrhPassword
@@ -189,6 +186,17 @@ subprojects {
189186 }
190187 }
191188
189+ if (sonatype_publish) {
190+ nexusPublishing {
191+ repositories {
192+ sonatype {
193+ nexusUrl = uri(sonatypeUrl)
194+ snapshotRepositoryUrl = uri(sonatypeSnapshotsUrl)
195+ }
196+ }
197+ }
198+ }
199+
192200 tasks. register(' sourcesJar' , Jar ) {
193201 dependsOn classes
194202 archiveClassifier = ' sources'
Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ quickfixjPrefixVersion=1.6.0
2121exactproVersion =12
2222
2323vcsUrl =https://github.com/Exactpro/quickfixj
24+ sonatypeUrl =https://oss.sonatype.org/service/local/staging/deploy/maven2
25+ sonatypeSnapshotsUrl =https://oss.sonatype.org/content/repositories/snapshots
You can’t perform that action at this time.
0 commit comments