Skip to content

Commit

Permalink
Update java release targets
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 29, 2017
1 parent f4a22f2 commit d9a3d3f
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ end
task :'prep-release-zip' => [
'//java/client/src/org/openqa/selenium:client-combined:zip',
'//java/server/src/org/openqa/grid/selenium:selenium:zip',
'//java/server/src/org/openqa/selenium/server/htmlrunner:selenium-runner'] do |t|
'//java/server/src/org/openqa/selenium/server/htmlrunner:selenium-runner'] do

mkdir_p "build/dist"
cp Rake::Task['//java/server/src/org/openqa/grid/selenium:selenium'].out, "build/dist/selenium-server-standalone-#{version}.jar"
Expand All @@ -460,15 +460,7 @@ task :'prep-release-zip' => [
end


task :release => JAVA_RELEASE_TARGETS + ['prep-release-zip'] do |t|
puts t.prerequisites.join(', ')

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

def read_user_pass_from_m2_settings
settings = File.read(ENV['HOME'] + "/.m2/settings.xml")
Expand All @@ -490,7 +482,7 @@ def read_user_pass_from_m2_settings
return [user, pass]
end

task :'publish-maven' do
task :'publish-maven' => JAVA_RELEASE_TARGETS do
puts "\n Enter Passphrase:"
passphrase = STDIN.gets.chomp

Expand All @@ -510,7 +502,7 @@ task :'maven-install' do
end
end

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

0 comments on commit d9a3d3f

Please sign in to comment.