Skip to content

Commit 0634233

Browse files
[RM] Support #86256. Added the Nexus plugin
1 parent 38dd92d commit 0634233

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
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 \

build.gradle

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
plugins {
1818
id 'jacoco'
19+
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
1920
}
2021

2122
allprojects {
@@ -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'

gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ quickfixjPrefixVersion=1.6.0
2121
exactproVersion=12
2222

2323
vcsUrl=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

0 commit comments

Comments
 (0)