Skip to content

Commit 5412433

Browse files
committed
adding maven-install target, adding two missing maven_coords directives, correcting one. This is pending some changes to buck to make it all work.
1 parent ef3b8e2 commit 5412433

File tree

4 files changed

+19
-2
lines changed
  • java
    • client/src/org/openqa/selenium/support
    • server/src
      • com/thoughtworks/selenium
      • org/openqa/selenium/remote/server

4 files changed

+19
-2
lines changed

Rakefile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ task '//java/client/test/org/openqa/selenium/environment/webserver:webserver:ube
111111
JAVA_RELEASE_TARGETS = [
112112
'//java/client/src/org/openqa/selenium:core',
113113
'//java/client/src/org/openqa/selenium:selenium',
114+
'//java/client/src/org/openqa/selenium/support:support',
114115
'//java/client/src/org/openqa/selenium/chrome:chrome',
115116
'//java/client/src/org/openqa/selenium/edge:edge',
116117
'//java/client/src/org/openqa/selenium/firefox:firefox',
@@ -119,6 +120,7 @@ JAVA_RELEASE_TARGETS = [
119120
'//java/client/src/org/openqa/selenium/remote:remote',
120121
'//java/client/src/org/openqa/selenium/safari:safari',
121122
'//java/server/src/com/thoughtworks/selenium:leg-rc',
123+
'//java/server/src/org/openqa/selenium/remote/server:server',
122124
]
123125

124126

@@ -547,7 +549,16 @@ task :'publish-maven' => JAVA_RELEASE_TARGETS do |t|
547549
t.prerequisites.each do |p|
548550
if JAVA_RELEASE_TARGETS.include?(p)
549551
creds = read_user_pass_from_m2_settings()
550-
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '-u', creds[0], '-p', creds[1], p])
552+
Buck::buck_cmd.call('publish', ['--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', '--include-source', '--include-javadoc', '-u', creds[0], '-p', creds[1], p])
553+
end
554+
end
555+
end
556+
557+
task :'maven-install' => JAVA_RELEASE_TARGETS do |t|
558+
t.prerequisites.each do |p|
559+
if JAVA_RELEASE_TARGETS.include?(p)
560+
creds = read_user_pass_from_m2_settings()
561+
Buck::buck_cmd.call('publish', ['--remote-repo', "file://#{ENV['HOME']}/.m2/repository", '--include-source', '--include-javadoc', '-u', creds[0], '-p', creds[1], p, '-v', '10'])
551562
end
552563
end
553564
end

java/client/src/org/openqa/selenium/support/BUCK

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
include_defs('//SELENIUM_VERSION')
2+
13
java_library(name = 'support',
24
srcs = [
35
'Color.java',
46
'Colors.java',
57
'ThreadGuard.java',
68
],
9+
maven_coords = 'org.seleniumhq.selenium:selenium-support:' + SE_VERSION,
710
deps = [
811
':page-factory',
912
'//java/client/src/org/openqa/selenium:selenium',

java/server/src/com/thoughtworks/selenium/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ include_defs('//SELENIUM_VERSION')
22

33
java_library(
44
name = 'leg-rc',
5-
maven_coords = 'org.seleniumhq.selenium:leg-rc:' + SE_VERSION,
5+
maven_coords = 'org.seleniumhq.selenium:selenium-leg-rc:' + SE_VERSION,
66
deps = [
77
'//java/client/src/com/thoughtworks/selenium:selenium',
88
'//java/server/src/org/openqa/selenium/server/htmlrunner:htmlrunner',

java/server/src/org/openqa/selenium/remote/server/BUCK

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
include_defs('//SELENIUM_VERSION')
2+
13
java_library(name = 'sessions',
24
srcs = [
35
'DriverSessions.java',
@@ -77,6 +79,7 @@ export_file(name = 'style',
7779
)
7880

7981
java_library(name = 'standalone-server-lib',
82+
maven_coords = 'org.seleniumhq.selenium:selenium-server:' + SE_VERSION,
8083
srcs = [
8184
'SeleniumServer.java',
8285
],

0 commit comments

Comments
 (0)