@@ -80,7 +80,7 @@ java_library(name = 'core',
80
80
81
81
genrule (name = 'manifest' ,
82
82
out = 'manifest.mf' ,
83
- bash = ' cp $(location :build-stamp) $OUT && printf " Selenium-Version: {}\n \n " >> $OUT' .format (SE_VERSION ),
83
+ bash = " cp $(location :build-stamp) $OUT && printf ' Selenium-Version: {}\n \n ' >> $OUT" .format (SE_VERSION ),
84
84
cmd_exe = "copy $(location :build-stamp) %OUT% && (echo Selenium-Version: {}\n \n ) >> %OUT%" .format (SE_VERSION ),
85
85
)
86
86
@@ -170,22 +170,52 @@ java_library(
170
170
maven_coords = 'org.seleniumhq.selenium:selenium-java:' + SE_VERSION ,
171
171
maven_pom_template = ':template-pom' ,
172
172
exported_deps = [
173
- " :selenium" ,
174
- " //java/client/src/org/openqa/selenium/chrome:chrome" ,
175
- " //java/client/src/org/openqa/selenium/firefox:firefox" ,
176
- " //java/client/src/org/openqa/selenium/edge:edge" ,
177
- " //java/client/src/org/openqa/selenium/ie:ie" ,
178
- " //java/client/src/org/openqa/selenium/opera:opera" ,
179
- " //java/client/src/org/openqa/selenium/remote:remote" ,
180
- " //java/client/src/org/openqa/selenium/safari:safari" ,
181
- " //java/client/src/org/openqa/selenium/support:support"
173
+ ' :selenium' ,
174
+ ' //java/client/src/org/openqa/selenium/chrome:chrome' ,
175
+ ' //java/client/src/org/openqa/selenium/firefox:firefox' ,
176
+ ' //java/client/src/org/openqa/selenium/edge:edge' ,
177
+ ' //java/client/src/org/openqa/selenium/ie:ie' ,
178
+ ' //java/client/src/org/openqa/selenium/opera:opera' ,
179
+ ' //java/client/src/org/openqa/selenium/remote:remote' ,
180
+ ' //java/client/src/org/openqa/selenium/safari:safari' ,
181
+ ' //java/client/src/org/openqa/selenium/support:support'
182
182
],
183
183
visibility = [
184
184
'//java/server/src/org/openqa/grid/selenium:classes' ,
185
185
'//java/server/test/org/openqa/selenium:lib' ,
186
186
],
187
187
)
188
188
189
+ java_binary (
190
+ name = 'client-combined-' + SE_VERSION ,
191
+ blacklist = [
192
+ '^(?!com.thoughtworks.selenium.*|org.openqa.selenium.*|org.openqa.grid.*)' ,
193
+ ],
194
+ deps = [
195
+ ':client-combined' ,
196
+ ],
197
+ )
198
+
199
+ # Output of this rule is named a source jar so we can do merging later
200
+ genrule (
201
+ name = 'client-libs' ,
202
+ out = 'libs-sources.jar' ,
203
+ cmd = 'mkdir libs && echo $(classpath :client-combined) | tr : "\\ n" | grep third_party/java | grep .jar | xargs -J % cp % libs && jar cMf $OUT libs/*' ,
204
+ )
205
+
206
+ zip_file (
207
+ name = 'client-combined-zip' ,
208
+ out = 'selenium-java-' + SE_VERSION + '.zip' ,
209
+ srcs = [
210
+ ':client-combined-' + SE_VERSION ,
211
+ ':client-libs' ,
212
+ '//java:changelog' ,
213
+ '//:notice' ,
214
+ '//:license' ,
215
+ ],
216
+ )
217
+
218
+
189
219
export_file (
190
220
name = 'template-pom' ,
191
221
src = 'pom.xml' ,
0 commit comments