Skip to content

Commit e043b6a

Browse files
committed
adding oss staging repo url to maven buck target(s)
need to figure out how to do authorization, it's specified in ~/.m2/settings.xml in this format: <settings> <servers> <server> <id>sonatype-nexus-staging</id> <username>USER</username> <password>PASS</password> </server> </servers> </settings>
1 parent 2f79118 commit e043b6a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Rakefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ end
497497
task :'maven-dry-run' => JAVA_RELEASE_TARGETS do |t|
498498
t.prerequisites.each do |p|
499499
if JAVA_RELEASE_TARGETS.include?(p)
500-
Buck::buck_cmd.call('publish', ['--dry-run', '--to-maven-central', p])
500+
Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
501501
end
502502
end
503503
end
@@ -513,7 +513,7 @@ task :release => JAVA_RELEASE_TARGETS + [
513513

514514
t.prerequisites.each do |p|
515515
if JAVA_RELEASE_TARGETS.include?(p)
516-
Buck::buck_cmd.call('publish', ['--dry-run', '--to-maven-central', p])
516+
Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
517517
end
518518
end
519519

@@ -523,6 +523,14 @@ task :release => JAVA_RELEASE_TARGETS + [
523523
cp Rake::Task['//java/client/src/org/openqa/selenium:client-combined:zip'].out, "build/dist/selenium-java-#{version}.zip"
524524
end
525525

526+
task :'publish-maven' => JAVA_RELEASE_TARGETS do |t|
527+
t.prerequisites.each do |p|
528+
if JAVA_RELEASE_TARGETS.include?(p)
529+
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', p])
530+
end
531+
end
532+
end
533+
526534
task :push_release => [:release] do
527535
py = "java -jar third_party/py/jython.jar"
528536
if (python?)

0 commit comments

Comments
 (0)