Skip to content

Commit 7e1e6f1

Browse files
committed
[java] Using new sonatype urls
[skip ci]
1 parent 1efb74d commit 7e1e6f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -963,9 +963,9 @@ namespace :java do
963963
ENV['MAVEN_USER'] ||= ENV.fetch('SEL_M2_USER', nil)
964964
ENV['MAVEN_PASSWORD'] ||= ENV.fetch('SEL_M2_PASS', nil)
965965
read_m2_user_pass unless ENV['MAVEN_PASSWORD'] && ENV['MAVEN_USER']
966-
967-
repo = nightly ? 'content/repositories/snapshots' : 'service/local/staging/deploy/maven2'
968-
ENV['MAVEN_REPO'] = "https://central.sonatype.org/#{repo}"
966+
repo_domain = 'central.sonatype.com'
967+
repo = nightly ? "#{repo_domain}/repository/maven-snapshots" : "ossrh-staging-api.#{repo_domain}/service/local/"
968+
ENV['MAVEN_REPO'] = "https://#{repo}"
969969
ENV['GPG_SIGN'] = (!nightly).to_s
970970

971971
if nightly

0 commit comments

Comments
 (0)