Skip to content

Commit

Permalink
[java] Adding task to publish snapshots in Java
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Apr 28, 2023
1 parent 46f300c commit 5e95c81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def release_version
end

def version
"#{release_version}.0"
"#{release_version}.1-SNAPSHOT"
end

# The build system used by webdriver is layered on top of rake, and we call it
Expand Down Expand Up @@ -386,6 +386,13 @@ task 'publish-maven': JAVA_RELEASE_TARGETS do
end
end

task 'publish-maven-snapshot': JAVA_RELEASE_TARGETS do
creds = read_user_pass_from_m2_settings
JAVA_RELEASE_TARGETS.each do |p|
Bazel::execute('run', ['--stamp', '--define', 'maven_repo=https://oss.sonatype.org/content/repositories/snapshots', '--define', "maven_user=#{creds[0]}", '--define', "maven_password=#{creds[1]}", '--define', 'gpg_sign=true'], p)
end
end

task :'maven-install' do
JAVA_RELEASE_TARGETS.each do |p|
Bazel::execute('run', ['--stamp', '--define', "maven_repo=file://#{ENV['HOME']}/.m2/repository", '--define', 'gpg_sign=false'], p)
Expand Down
2 changes: 1 addition & 1 deletion java/version.bzl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SE_VERSION = "4.9.0"
SE_VERSION = "4.9.1-SNAPSHOT"

0 comments on commit 5e95c81

Please sign in to comment.