Skip to content

Commit

Permalink
Use a template for the pom
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Aug 2, 2016
1 parent f90648c commit 7a1a0a8
Show file tree
Hide file tree
Showing 12 changed files with 113 additions and 0 deletions.
9 changes: 9 additions & 0 deletions java/client/src/org/openqa/selenium/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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",
Expand All @@ -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'],
)
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/chrome/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/edge/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/firefox/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/ie/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/opera/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
94 changes: 94 additions & 0 deletions java/client/src/org/openqa/selenium/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>empty</artifactId>
<version>unknown</version>
<description>Selenium automates browsers. That's it! What you do with that power is entirely up to you.</description>
<url>http://www.seleniumhq.org/</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>simon.m.stewart</id>
<name>Simon Stewart</name>
<roles>
<role>Owner</role>
</roles>
</developer>
<developer>
<id>dawagner</id>
<name>Daniel Wagner-Hall</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>eran.mes@gmail.com</id>
<name>Eran Mes</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>james.h.evans.jr</id>
<name>Jim Evans</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>jari.bakken</id>
<name>Jari Bakken</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>michael.tamm2</id>
<name>Michael Tamm</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>theautomatedtester</id>
<name>David Burns</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>krosenvold</id>
<name>Kristian Rosenvold</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>lsemerau</id>
<name>Luke Inman-Semerau</name>
<roles>
<role>Committer</role>
</roles>
</developer>
<developer>
<id>barancev</id>
<name>Alexei Barantsev</name>
<roles>
<role>Committer</role>
</roles>
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:SeleniumHQ/selenium.git</connection>
<developerConnection>scm:git:git@github.com:SeleniumHQ/selenium.git</developerConnection>
<url>https://github.com/SeleniumHQ/selenium/</url>
</scm>
</project>
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/remote/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/safari/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/client/src/org/openqa/selenium/support/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/server/src/com/thoughtworks/selenium/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions java/server/src/org/openqa/grid/selenium/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 7a1a0a8

Please sign in to comment.