Skip to content
Snippets Groups Projects
Commit 0a3423ca authored by dgelessus's avatar dgelessus
Browse files

Update publishing settings for new Maven Central Portal

parent a3d73f1e
No related branches found
No related tags found
No related merge requests found
Pipeline #158178 passed
......@@ -39,7 +39,7 @@ publish:
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in gradle.properties.enc -out gradle.properties
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in pubring.gpg.enc -out pubring.gpg
- openssl aes-256-cbc -d -base64 -pbkdf2 -pass "env:ENCRYPTION_PASSWORD" -in secring.gpg.enc -out secring.gpg
- ./gradlew ${GRADLE_OPTIONS} publish
- ./gradlew ${GRADLE_OPTIONS} publish closeStagingRepositories
only:
- master@general/stups/sablecc-stups
- develop@general/stups/sablecc-stups
......@@ -3,6 +3,8 @@ plugins {
id "java"
id "maven-publish"
id "signing"
id("io.github.gradle-nexus.publish-plugin").version("2.0.0")
}
allprojects {
......@@ -13,6 +15,8 @@ allprojects {
ext."signing.secretKeyRingFile" = rootProject.file("secring.gpg").absolutePath
}
final snapshotsRepoUrl = "https://central.sonatype.com/repository/maven-snapshots/"
final releasesStagingRepoUrl = "https://ossrh-staging-api.central.sonatype.com/service/local/"
repositories {
mavenCentral()
}
......@@ -135,18 +139,13 @@ publishing {
}
}
}
}
nexusPublishing {
repositories {
maven {
final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
credentials {
username = project.ossrhUsername
password = project.ossrhPassword
}
}
mavenCentral {
snapshotRepositoryUrl.set(uri(snapshotsRepoUrl))
nexusUrl.set(uri(releasesStagingRepoUrl))
}
}
}
......
U2FsdGVkX1+BEAbjRIB+mXtm8SXf7JkI+WHnEimPW4vLHWrbGs8PY7u+B9BCqO+3
vmUhdJFfnwJglivtRmt3ecLUpSSG3pZFXrdtnR/eHdLIkbGIIjZRcRTokF66Z2CQ
sWdDhhu2gsRxXOiKSQ/d5MknWHd+zlLoMiWJv3u+EQ3desH/cadBC1RAod7L6Kul
UtSAw5pmAJFaBrRFoOJVvw7hi5ZkpcMB3JTZL2+1Tsxs50m7XAqc5PVdCHpMqVMb
U2FsdGVkX19piKEOUkSYKdDeqhnlaWPFZogPpH92J23jhFA+9LyzD+WbGUx/PD3u
VvDpzYel3BLSKKrQgaK3iJOoSNiZTnP6CtG1dBh1nTd/c0vGx6vAjEXhyH/Q9YO1
kiNBBHt1yjcrZpWsoCz5rtKFCMseuW9LT5DiD1u8y+d/RnBjfUYHyOzGGJbEE5uT
XE6SV4JL9kir7K71KHjXTfMyKFTXPbhGdPUVWMsx/MPL4YRanPEWKLH6P5ReeS4J
i1x21w0oy61wDvt/XQI7RA==
......@@ -55,20 +55,6 @@ publishing {
}
}
}
repositories {
maven {
final releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
final snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = isSnapshot ? snapshotsRepoUrl : releasesRepoUrl
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) {
credentials {
username = project.ossrhUsername
password = project.ossrhPassword
}
}
}
}
}
signing {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment