Skip to content

Commit

Permalink
adding oss staging repo url to maven buck target(s)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lukeis committed Jun 19, 2016
1 parent 2f79118 commit e043b6a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ end
task :'maven-dry-run' => JAVA_RELEASE_TARGETS do |t|
t.prerequisites.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--dry-run', '--to-maven-central', p])
Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
end
end
end
Expand All @@ -513,7 +513,7 @@ task :release => JAVA_RELEASE_TARGETS + [

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

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

task :'publish-maven' => JAVA_RELEASE_TARGETS do |t|
t.prerequisites.each do |p|
if JAVA_RELEASE_TARGETS.include?(p)
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', p])
end
end
end

task :push_release => [:release] do
py = "java -jar third_party/py/jython.jar"
if (python?)
Expand Down

0 comments on commit e043b6a

Please sign in to comment.