Skip to content

Commit d2456ca

Browse files
authored
EPNG-12229 Use OSSRH staging API (#102)
1 parent c0de3ce commit d2456ca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ subprojects {
6767

6868
nexusPublishing {
6969
repositories {
70-
sonatype ()
70+
sonatype {
71+
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
72+
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
73+
}
7174
}
7275
}
7376

ci_publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if [[ ! -f "${SECRET_KEYS_FILE}" ]]; then
2929
fi
3030

3131
# Publish
32-
./gradlew publishToSonatype \
32+
./gradlew publishToSonatype closeSonatypeStagingRepository \
3333
--info \
3434
-Dorg.gradle.project.sonatypeUsername="${SONATYPE_USERNAME}" \
3535
-Dorg.gradle.project.sonatypePassword="${SONATYPE_PASSWORD}" \

0 commit comments

Comments
 (0)