Skip to content

Commit 0861f4c

Browse files
committed
[bazel] Export jetty correctly
1 parent e82f965 commit 0861f4c

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

third_party/java/jetty/BUILD.bazel

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
load(":repack.bzl", "repack_jars")
2-
load("//third_party/java:rules.bzl", "maven_java_import", "maven_java_library")
2+
load("//java:maven.bzl", "java_export")
3+
load("//third_party/java:rules.bzl", "maven_java_import")
34

45
licenses(["notice"])
56

67
package(default_visibility = ["//visibility:public"])
78

89
JETTY_VERSION = "9.4.19.v20190610"
910

10-
maven_java_library(
11+
java_export(
1112
name = "jetty",
12-
coords = "org.seleniumhq.selenium:jetty-repacked:%s" % JETTY_VERSION,
13+
maven_coordinates = "org.seleniumhq.selenium:jetty-repacked:%s" % JETTY_VERSION,
14+
pom_template = "jetty.pom",
1315
exports = [":repackage"],
1416
runtime_deps = [
1517
"//third_party/java/servlet:javax.servlet-api",

third_party/java/jetty/jetty.pom

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>org.seleniumhq.selenium</groupId>
7-
<artifactId>jetty-repacked</artifactId>
8-
<version>-9.4.19.v20190610</version>
6+
<groupId>{groupId}</groupId>
7+
<artifactId>{artifactId}</artifactId>
8+
<version>{version}</version>
99

1010
<name>selenium-jetty-server-repacked</name>
1111
<description>Browser automation framework dependency on jetty</description>
@@ -43,11 +43,7 @@
4343
</scm>
4444

4545
<dependencies>
46-
<dependency>
47-
<groupId>javax.servlet</groupId>
48-
<artifactId>javax.servlet-api</artifactId>
49-
<version>3.1.0</version>
50-
</dependency>
46+
{dependencies}
5147
</dependencies>
5248
</project>
5349

0 commit comments

Comments
 (0)