@@ -525,7 +525,7 @@ namespace :node do
525
525
526
526
desc 'Build Node npm package'
527
527
task :build , [ :args ] do |_task , arguments |
528
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
528
+ args = arguments [ :args ] || [ ]
529
529
Bazel . execute ( 'build' , args , '//javascript/node/selenium-webdriver' )
530
530
end
531
531
@@ -573,16 +573,16 @@ end
573
573
namespace :py do
574
574
desc 'Build Python wheel and sdist with optional arguments'
575
575
task :build , [ :args ] do |_task , arguments |
576
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
576
+ args = arguments [ :args ] || [ ]
577
577
Bazel . execute ( 'build' , args , '//py:selenium-wheel' )
578
578
Bazel . execute ( 'build' , args , '//py:selenium-sdist' )
579
579
end
580
580
581
581
desc 'Release Python wheel and sdist to pypi'
582
582
task :release , [ :args ] do |_task , arguments |
583
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
583
+ args = arguments [ :args ] || [ '--stamp' ]
584
584
Rake ::Task [ 'py:build' ] . invoke ( args )
585
- sh "python3 -m twine upload ` bazel-bin/py/selenium` -#{ python_version } -py3-none-any.whl"
585
+ sh "python3 -m twine upload bazel-bin/py/selenium-#{ python_version } -py3-none-any.whl"
586
586
sh "python3 -m twine upload bazel-bin/py/selenium-#{ python_version } .tar.gz"
587
587
end
588
588
707
707
namespace :rb do
708
708
desc 'Generate Ruby gems'
709
709
task :build , [ :args ] do |_task , arguments |
710
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
710
+ args = arguments [ :args ] || [ ]
711
711
Bazel . execute ( 'build' , args , '//rb:selenium-webdriver' )
712
712
Bazel . execute ( 'build' , args , '//rb:selenium-devtools' )
713
713
end
@@ -721,9 +721,9 @@ namespace :rb do
721
721
722
722
desc 'Push Ruby gems to rubygems'
723
723
task :release , [ :args ] do |_task , arguments |
724
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
725
- Bazel . execute ( 'run' , args , '//rb:selenium-webdriver' )
726
- Bazel . execute ( 'run' , args , '//rb:selenium-devtools' )
724
+ args = arguments [ :args ] || [ '--stamp' ]
725
+ Bazel . execute ( 'run' , args , '//rb:selenium-webdriver-release ' )
726
+ Bazel . execute ( 'run' , args , '//rb:selenium-devtools-release ' )
727
727
end
728
728
729
729
desc 'Generate Ruby documentation'
@@ -772,13 +772,13 @@ end
772
772
namespace :dotnet do
773
773
desc 'Build nupkg files'
774
774
task :build , [ :args ] do |_task , arguments |
775
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
775
+ args = arguments [ :args ] || [ ]
776
776
Bazel . execute ( 'build' , args , '//dotnet:all' )
777
777
end
778
778
779
779
desc 'Create zipped assets for .NET for uploading to GitHub'
780
780
task :zip_assets , [ :args ] do |_task , arguments |
781
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
781
+ args = arguments [ :args ] || [ '--stamp' ]
782
782
Rake ::Task [ 'dotnet:build' ] . invoke ( args )
783
783
mkdir_p 'build/dist'
784
784
FileUtils . rm_f ( 'build/dist/*dotnet*' )
@@ -791,7 +791,7 @@ namespace :dotnet do
791
791
792
792
desc 'Upload nupkg files to Nuget'
793
793
task :release , [ :args ] do |_task , arguments |
794
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
794
+ args = arguments [ :args ] || [ '--stamp' ]
795
795
Rake ::Task [ 'dotnet:build' ] . invoke ( args )
796
796
Rake ::Task [ 'dotnet:zip_assets' ] . invoke ( args )
797
797
@@ -852,26 +852,26 @@ end
852
852
namespace :java do
853
853
desc 'Build Java Client Jars'
854
854
task :build , [ :args ] do |_task , arguments |
855
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
855
+ args = arguments [ :args ] || [ ]
856
856
Bazel . execute ( 'build' , args , '//java/src/org/openqa/selenium:client-combined' )
857
857
end
858
858
859
859
desc 'Build Grid Jar'
860
860
task :grid , [ :args ] do |_task , arguments |
861
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
861
+ args = arguments [ :args ] || [ ]
862
862
Bazel . execute ( 'build' , args , '//java/src/org/openqa/selenium/grid:grid' )
863
863
end
864
864
865
865
desc 'Package Java bindings and grid into releasable packages'
866
866
task :package , [ :args ] do |_task , arguments |
867
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
867
+ args = arguments [ :args ] || [ ]
868
868
Rake ::Task [ 'java:build' ] . invoke ( args )
869
869
Rake ::Task [ 'java-release-zip' ] . invoke
870
870
end
871
871
872
872
desc 'Deploy all jars to Maven'
873
873
task :release , [ :args ] do |_task , arguments |
874
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
874
+ args = arguments [ :args ] || [ '--stamp' ]
875
875
Rake ::Task [ 'java:package' ] . invoke ( args )
876
876
Rake ::Task [ 'publish-maven' ] . invoke
877
877
end
947
947
namespace :rust do
948
948
desc 'Build Selenium Manager'
949
949
task :build , [ :args ] do |_task , arguments |
950
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
950
+ args = arguments [ :args ] || [ ]
951
951
Bazel . execute ( 'build' , args , '//rust:selenium-manager' )
952
952
end
953
953
@@ -1002,7 +1002,7 @@ namespace :all do
1002
1002
1003
1003
desc 'Build all artifacts for all language bindings'
1004
1004
task :build , [ :args ] do |_task , arguments |
1005
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ ]
1005
+ args = arguments [ :args ] || [ ]
1006
1006
Rake ::Task [ 'java:build' ] . invoke ( args )
1007
1007
Rake ::Task [ 'py:build' ] . invoke ( args )
1008
1008
Rake ::Task [ 'rb:build' ] . invoke ( args )
@@ -1016,23 +1016,30 @@ namespace :all do
1016
1016
tag = @git . add_tag ( "selenium-#{ java_version } " )
1017
1017
@git . push ( 'origin' , tag . name )
1018
1018
1019
- args = arguments [ :args ] ? [ arguments [ :args ] ] : [ '--stamp' ]
1019
+ args = arguments [ :args ] || [ '--stamp' ]
1020
1020
Rake ::Task [ 'java:release' ] . invoke ( args )
1021
1021
Rake ::Task [ 'py:release' ] . invoke ( args )
1022
1022
Rake ::Task [ 'rb:release' ] . invoke ( args )
1023
1023
Rake ::Task [ 'dotnet:release' ] . invoke ( args )
1024
1024
Rake ::Task [ 'node:release' ] . invoke ( args )
1025
1025
Rake ::Task [ 'create_release_notes' ] . invoke ( args )
1026
1026
Rake ::Task [ 'all:docs' ] . invoke
1027
- Rake ::Task [ 'all:version' ] . invoke ( [ 'nightly' ] )
1027
+ Rake ::Task [ 'all:version' ] . invoke ( 'nightly' )
1028
1028
1029
1029
puts "Staging nightly version updates"
1030
- @git . add ( [ 'java/version.bzl' , 'rb/lib/selenium/webdriver/version.rb' ] , all : true )
1030
+ @git . add ( [ 'java/version.bzl' ,
1031
+ 'rb/lib/selenium/webdriver/version.rb' ,
1032
+ 'rb/Gemfile.lock' ,
1033
+ 'rust/BUILD.bazel' ,
1034
+ 'rust/Cargo.Bazel.lock' ,
1035
+ 'rust/Cargo.lock' ,
1036
+ 'rust/Cargo.toml' ] ,
1037
+ all : true )
1031
1038
puts "Committing nightly version updates"
1032
- @git . commit ( 'updating versions to nightly' )
1039
+ @git . commit ( 'update versions to nightly' )
1033
1040
puts "Pushing changes to upstream repository"
1034
1041
1035
- print 'Do you want to commit the changes? (Y/n): '
1042
+ print 'Do you want to push the committed changes? (Y/n): '
1036
1043
response = STDIN . gets . chomp . downcase
1037
1044
@git . push if response == 'y' || response == 'yes'
1038
1045
end
@@ -1078,23 +1085,23 @@ task :create_release_notes do
1078
1085
git_log_output = `#{ git_log_command } `
1079
1086
1080
1087
release_notes = <<~RELEASE_NOTES
1081
- ### Changelog
1088
+ ### Changelog
1082
1089
1083
- For each component's detailed changelog, please check:
1084
- * [Ruby](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
1085
- * [Python](https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES)
1086
- * [JavaScript](https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/node/selenium-webdriver/CHANGES.md)
1087
- * [Java](https://github.com/SeleniumHQ/selenium/blob/trunk/java/CHANGELOG)
1088
- * [DotNet](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/CHANGELOG)
1089
- * [IEDriverServer](https://github.com/SeleniumHQ/selenium/blob/trunk/cpp/iedriverserver/CHANGELOG)
1090
+ For each component's detailed changelog, please check:
1091
+ * [Ruby](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)
1092
+ * [Python](https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES)
1093
+ * [JavaScript](https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/node/selenium-webdriver/CHANGES.md)
1094
+ * [Java](https://github.com/SeleniumHQ/selenium/blob/trunk/java/CHANGELOG)
1095
+ * [DotNet](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/CHANGELOG)
1096
+ * [IEDriverServer](https://github.com/SeleniumHQ/selenium/blob/trunk/cpp/iedriverserver/CHANGELOG)
1090
1097
1091
- ### Commits in this release
1092
- <details>
1093
- <summary>Click to see all the commits included in this release</summary>
1098
+ ### Commits in this release
1099
+ <details>
1100
+ <summary>Click to see all the commits included in this release</summary>
1094
1101
1095
- #{ git_log_output }
1102
+ #{ git_log_output }
1096
1103
1097
- </details>
1104
+ </details>
1098
1105
RELEASE_NOTES
1099
1106
1100
1107
FileUtils . mkdir_p ( 'build/dist' )
0 commit comments