Skip to content

Commit

Permalink
[build] clean up Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
titusfortner committed Dec 8, 2023
1 parent 46946e9 commit c606239
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -411,16 +411,16 @@ end

task :prepare_release do
RELEASE_TARGETS = [
'//java/src/org/openqa/selenium:client-zip',
'//java/src/org/openqa/selenium/grid:server-zip',
'//java/src/org/openqa/selenium/grid:executable-grid',
'//dotnet/src/webdriver:webdriver-pack',
'//dotnet/src/webdriver:webdriver-strongnamed-pack',
'//dotnet/src/support:support-pack',
'//dotnet/src/support:support-strongnamed-pack',
'//javascript/node/selenium-webdriver:selenium-webdriver',
'//py:selenium-wheel',
'//py:selenium-sdist',
'//java/src/org/openqa/selenium:client-zip',
'//java/src/org/openqa/selenium/grid:server-zip',
'//java/src/org/openqa/selenium/grid:executable-grid',
'//dotnet/src/webdriver:webdriver-pack',
'//dotnet/src/webdriver:webdriver-strongnamed-pack',
'//dotnet/src/support:support-pack',
'//dotnet/src/support:support-strongnamed-pack',
'//javascript/node/selenium-webdriver:selenium-webdriver',
'//py:selenium-wheel',
'//py:selenium-sdist',
]

RELEASE_TARGETS.each do |target|
Expand All @@ -440,13 +440,6 @@ task 'publish-pypi' do
end
end

task 'publish-maven': JAVA_RELEASE_TARGETS do
creds = read_m2_user_pass
JAVA_RELEASE_TARGETS.each do |p|
Bazel::execute('run', ['--stamp', '--define', 'maven_repo=https://oss.sonatype.org/service/local/staging/deploy/maven2', '--define', "maven_user=#{creds[0]}", '--define', "maven_password=#{creds[1]}", '--define', 'gpg_sign=true'], p)
end
end

NUGET_RELEASE_ASSETS = [
"./bazel-bin/dotnet/src/webdriver/Selenium.WebDriver.#{dotnet_version}.nupkg",
"./bazel-bin/dotnet/src/webdriver/Selenium.Support.#{dotnet_version}.nupkg"
Expand All @@ -458,6 +451,13 @@ task 'publish-nuget' do
end
end

task 'publish-maven': JAVA_RELEASE_TARGETS do
creds = read_m2_user_pass
JAVA_RELEASE_TARGETS.each do |p|
Bazel::execute('run', ['--stamp', '--define', 'maven_repo=https://oss.sonatype.org/service/local/staging/deploy/maven2', '--define', "maven_user=#{creds[0]}", '--define', "maven_password=#{creds[1]}", '--define', 'gpg_sign=true'], p)
end
end

task 'publish-maven-snapshot': JAVA_RELEASE_TARGETS do
creds = read_m2_user_pass
if java_version.end_with?('-SNAPSHOT')
Expand Down

0 comments on commit c606239

Please sign in to comment.