From 7a1a0a847b26eb091bec6679fee10d57a55a5317 Mon Sep 17 00:00:00 2001 From: Simon Stewart Date: Fri, 29 Jul 2016 01:55:28 +0100 Subject: [PATCH] Use a template for the pom --- java/client/src/org/openqa/selenium/BUCK | 9 ++ .../src/org/openqa/selenium/chrome/BUCK | 1 + java/client/src/org/openqa/selenium/edge/BUCK | 1 + .../src/org/openqa/selenium/firefox/BUCK | 1 + java/client/src/org/openqa/selenium/ie/BUCK | 1 + .../client/src/org/openqa/selenium/opera/BUCK | 1 + java/client/src/org/openqa/selenium/pom.xml | 94 +++++++++++++++++++ .../src/org/openqa/selenium/remote/BUCK | 1 + .../src/org/openqa/selenium/safari/BUCK | 1 + .../src/org/openqa/selenium/support/BUCK | 1 + .../server/src/com/thoughtworks/selenium/BUCK | 1 + java/server/src/org/openqa/grid/selenium/BUCK | 1 + 12 files changed, 113 insertions(+) create mode 100644 java/client/src/org/openqa/selenium/pom.xml diff --git a/java/client/src/org/openqa/selenium/BUCK b/java/client/src/org/openqa/selenium/BUCK index 2490c5553e73f..34e86f968735d 100644 --- a/java/client/src/org/openqa/selenium/BUCK +++ b/java/client/src/org/openqa/selenium/BUCK @@ -20,6 +20,7 @@ java_library(name = 'selenium', java_library(name = 'core', maven_coords = 'org.seleniumhq.selenium:selenium-api:' + SE_VERSION, + maven_pom_template = ':template-pom', srcs = [ 'Alert.java', 'By.java', @@ -138,6 +139,7 @@ java_library(name = 'primitives', java_library( name = 'client-combined', maven_coords = 'org.seleniumhq.selenium:selenium-java:' + SE_VERSION, + maven_pom_template = ':template-pom', exported_deps = [ "//java/client/src/org/openqa/selenium/chrome:chrome", "//java/client/src/org/openqa/selenium/firefox:firefox", @@ -153,3 +155,10 @@ java_library( '//java/server/src/org/openqa/grid/selenium:classes', ], ) + +export_file( + name = 'template-pom', + src = 'pom.xml', + out = 'pom.xml', + visibility = ['PUBLIC'], +) diff --git a/java/client/src/org/openqa/selenium/chrome/BUCK b/java/client/src/org/openqa/selenium/chrome/BUCK index 632634e544f1f..bd0e7de0ad479 100644 --- a/java/client/src/org/openqa/selenium/chrome/BUCK +++ b/java/client/src/org/openqa/selenium/chrome/BUCK @@ -3,6 +3,7 @@ include_defs('//SELENIUM_VERSION') java_library( name = 'chrome', maven_coords = 'org.seleniumhq.selenium:selenium-chrome-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java']), deps = [ '//java/client/src/org/openqa/selenium:selenium', diff --git a/java/client/src/org/openqa/selenium/edge/BUCK b/java/client/src/org/openqa/selenium/edge/BUCK index 0309786183ab7..6c5062aecb699 100644 --- a/java/client/src/org/openqa/selenium/edge/BUCK +++ b/java/client/src/org/openqa/selenium/edge/BUCK @@ -3,6 +3,7 @@ include_defs('//SELENIUM_VERSION') java_library( name = 'edge', maven_coords = 'org.seleniumhq.selenium:selenium-edge-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java']), deps = [ '//java/client/src/org/openqa/selenium:selenium', diff --git a/java/client/src/org/openqa/selenium/firefox/BUCK b/java/client/src/org/openqa/selenium/firefox/BUCK index b9f6ac266afe5..bcfd5c17da324 100644 --- a/java/client/src/org/openqa/selenium/firefox/BUCK +++ b/java/client/src/org/openqa/selenium/firefox/BUCK @@ -2,6 +2,7 @@ include_defs('//SELENIUM_VERSION') java_library(name = 'firefox', maven_coords = 'org.seleniumhq.selenium:selenium-firefox-driver:jar:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java', 'internal/*.java']), resources = [ ':prefs', diff --git a/java/client/src/org/openqa/selenium/ie/BUCK b/java/client/src/org/openqa/selenium/ie/BUCK index cd8a3cca2d2dc..5725d2a73ecfe 100644 --- a/java/client/src/org/openqa/selenium/ie/BUCK +++ b/java/client/src/org/openqa/selenium/ie/BUCK @@ -2,6 +2,7 @@ include_defs('//SELENIUM_VERSION') java_library(name = 'ie', maven_coords = 'org.seleniumhq.selenium:selenium-ie-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java']), deps = [ '//java/client/src/org/openqa/selenium:selenium', diff --git a/java/client/src/org/openqa/selenium/opera/BUCK b/java/client/src/org/openqa/selenium/opera/BUCK index 7a6abd8007b1d..31740b645b7f5 100644 --- a/java/client/src/org/openqa/selenium/opera/BUCK +++ b/java/client/src/org/openqa/selenium/opera/BUCK @@ -3,6 +3,7 @@ include_defs('//SELENIUM_VERSION') java_library( name = 'opera', maven_coords = 'org.seleniumhq.selenium:selenium-opera-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java']), deps = [ '//java/client/src/org/openqa/selenium:selenium', diff --git a/java/client/src/org/openqa/selenium/pom.xml b/java/client/src/org/openqa/selenium/pom.xml new file mode 100644 index 0000000000000..59f2783b02b48 --- /dev/null +++ b/java/client/src/org/openqa/selenium/pom.xml @@ -0,0 +1,94 @@ + + + 4.0.0 + org.seleniumhq.selenium + empty + unknown + Selenium automates browsers. That's it! What you do with that power is entirely up to you. + http://www.seleniumhq.org/ + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + simon.m.stewart + Simon Stewart + + Owner + + + + dawagner + Daniel Wagner-Hall + + Committer + + + + eran.mes@gmail.com + Eran Mes + + Committer + + + + james.h.evans.jr + Jim Evans + + Committer + + + + jari.bakken + Jari Bakken + + Committer + + + + michael.tamm2 + Michael Tamm + + Committer + + + + theautomatedtester + David Burns + + Committer + + + + krosenvold + Kristian Rosenvold + + Committer + + + + lsemerau + Luke Inman-Semerau + + Committer + + + + barancev + Alexei Barantsev + + Committer + + + + + scm:git:git@github.com:SeleniumHQ/selenium.git + scm:git:git@github.com:SeleniumHQ/selenium.git + https://github.com/SeleniumHQ/selenium/ + + diff --git a/java/client/src/org/openqa/selenium/remote/BUCK b/java/client/src/org/openqa/selenium/remote/BUCK index db41047ba2291..2f99880a4f721 100644 --- a/java/client/src/org/openqa/selenium/remote/BUCK +++ b/java/client/src/org/openqa/selenium/remote/BUCK @@ -31,6 +31,7 @@ java_library( java_library(name = 'remote', maven_coords = 'org.seleniumhq.selenium:selenium-remote-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = [ 'Augmenter.java', 'AugmenterProvider.java', diff --git a/java/client/src/org/openqa/selenium/safari/BUCK b/java/client/src/org/openqa/selenium/safari/BUCK index f2120f22e61dc..845964157eafd 100644 --- a/java/client/src/org/openqa/selenium/safari/BUCK +++ b/java/client/src/org/openqa/selenium/safari/BUCK @@ -2,6 +2,7 @@ include_defs('//SELENIUM_VERSION') java_library(name = 'safari', maven_coords = 'org.seleniumhq.selenium:selenium-safari-driver:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['*.java']), resources = [ ':client', diff --git a/java/client/src/org/openqa/selenium/support/BUCK b/java/client/src/org/openqa/selenium/support/BUCK index 57df38432a903..0b14225e36f09 100644 --- a/java/client/src/org/openqa/selenium/support/BUCK +++ b/java/client/src/org/openqa/selenium/support/BUCK @@ -7,6 +7,7 @@ java_library(name = 'support', 'ThreadGuard.java', ], maven_coords = 'org.seleniumhq.selenium:selenium-support:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', deps = [ ':page-factory', '//java/client/src/org/openqa/selenium:selenium', diff --git a/java/server/src/com/thoughtworks/selenium/BUCK b/java/server/src/com/thoughtworks/selenium/BUCK index ad64c6d41378c..ae4d84ecb3286 100644 --- a/java/server/src/com/thoughtworks/selenium/BUCK +++ b/java/server/src/com/thoughtworks/selenium/BUCK @@ -3,6 +3,7 @@ include_defs('//SELENIUM_VERSION') java_library( name = 'leg-rc', maven_coords = 'org.seleniumhq.selenium:selenium-leg-rc:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', deps = [ '//java/client/src/com/thoughtworks/selenium:selenium', '//java/server/src/org/openqa/selenium/server/htmlrunner:htmlrunner', diff --git a/java/server/src/org/openqa/grid/selenium/BUCK b/java/server/src/org/openqa/grid/selenium/BUCK index 2209e34724324..9ba9b053d5742 100644 --- a/java/server/src/org/openqa/grid/selenium/BUCK +++ b/java/server/src/org/openqa/grid/selenium/BUCK @@ -22,6 +22,7 @@ python_binary(name = 'generate-build-info', java_library(name = 'classes', maven_coords = 'org.seleniumhq.selenium:selenium-server:' + SE_VERSION, + maven_pom_template = '//java/client/src/org/openqa/selenium:template-pom', srcs = glob(['**/*.java']), deps = [ '//java/client/src/com/thoughtworks/selenium/webdriven:webdriven',