Skip to content

Commit 5e95c81

Browse files
committed
[java] Adding task to publish snapshots in Java
1 parent 46f300c commit 5e95c81

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def release_version
5555
end
5656

5757
def version
58-
"#{release_version}.0"
58+
"#{release_version}.1-SNAPSHOT"
5959
end
6060

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

389+
task 'publish-maven-snapshot': JAVA_RELEASE_TARGETS do
390+
creds = read_user_pass_from_m2_settings
391+
JAVA_RELEASE_TARGETS.each do |p|
392+
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)
393+
end
394+
end
395+
389396
task :'maven-install' do
390397
JAVA_RELEASE_TARGETS.each do |p|
391398
Bazel::execute('run', ['--stamp', '--define', "maven_repo=file://#{ENV['HOME']}/.m2/repository", '--define', 'gpg_sign=false'], p)

java/version.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SE_VERSION = "4.9.0"
1+
SE_VERSION = "4.9.1-SNAPSHOT"

0 commit comments

Comments
 (0)