Skip to content

Commit a9292df

Browse files
committed
testing maven central
1 parent 4991841 commit a9292df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.ci/make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ if [[ "$CMD" == "release" ]]; then
196196
gradle_task="java-client:publishAllPublicationsToBuildRepository"
197197
else
198198
echo "Releasing to Maven snapshot repo"
199-
gradle_task="java-client:publishAllPublicationsToMavenCentralSnapshotRepository"
199+
gradle_task="java-client:publishAllPublicationsToMavenCentralRepository"
200200
fi
201201
docker run --rm --env VERSION=$VERSION -u "$(id -u)" \
202202
$git_mount $src_mount $output_mount \

java-client/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ publishing {
137137
}
138138

139139
maven {
140-
name = "MavenCentralSnapshot"
141-
url = uri("https://oss.sonatype.org/content/repositories/snapshots/")
140+
name = "MavenCentral"
141+
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
142142
credentials {
143143
run {
144-
if (gradle.startParameter.taskNames.find { it.contains("ToMavenCentralSnapshotRepository") } != null) {
144+
if (gradle.startParameter.taskNames.find { it.contains("ToMavenCentralRepository") } != null) {
145145
if (!providers.gradleProperty("ossrhUsername").isPresent) logger.error("ossrhUsername not set")
146146
if (!providers.gradleProperty("ossrhPassword").isPresent) logger.error("ossrhPassword not set")
147147
}

0 commit comments

Comments
 (0)