aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2018-05-02 15:54:47 +0200
committerRoel Spilker <r.spilker@gmail.com>2018-05-02 15:54:47 +0200
commita9aafe2d794b7c0aacb37c7b4e6ba1ec359dc2a9 (patch)
tree662738172ba05b342071236d89df6419eb9db03a
parent1230d449b4e0db48463ce379a1656be3cf499261 (diff)
downloadlombok-a9aafe2d794b7c0aacb37c7b4e6ba1ec359dc2a9.tar.gz
lombok-a9aafe2d794b7c0aacb37c7b4e6ba1ec359dc2a9.tar.bz2
lombok-a9aafe2d794b7c0aacb37c7b4e6ba1ec359dc2a9.zip
docker bazel: use local lombok.jar file
-rw-r--r--docker/bazel/files/BUILD12
-rw-r--r--docker/bazel/files/BUILD.lombok5
-rw-r--r--docker/bazel/files/WORKSPACE5
3 files changed, 14 insertions, 8 deletions
diff --git a/docker/bazel/files/BUILD b/docker/bazel/files/BUILD
index b01da26d..4a9c7655 100644
--- a/docker/bazel/files/BUILD
+++ b/docker/bazel/files/BUILD
@@ -6,13 +6,13 @@ java_binary(
)
java_plugin(
- name = "lombok_plugin",
- processor_class = "lombok.launch.AnnotationProcessorHider$AnnotationProcessor",
- deps = ["@lombok_jar//jar"],
+ name = "lombok_plugin",
+ processor_class = "lombok.launch.AnnotationProcessorHider$AnnotationProcessor",
+ deps = ["@lombok_jar//:jar"],
)
java_library(
- name = "lombok",
- exports = ["@lombok_jar//jar"],
- exported_plugins = [":lombok_plugin"],
+ name = "lombok",
+ exports = ["@lombok_jar//:jar"],
+ exported_plugins = [":lombok_plugin"],
) \ No newline at end of file
diff --git a/docker/bazel/files/BUILD.lombok b/docker/bazel/files/BUILD.lombok
new file mode 100644
index 00000000..06836d17
--- /dev/null
+++ b/docker/bazel/files/BUILD.lombok
@@ -0,0 +1,5 @@
+java_import(
+ name = "jar",
+ jars = ["lombok.jar"],
+ visibility = ["//visibility:public"]
+)
diff --git a/docker/bazel/files/WORKSPACE b/docker/bazel/files/WORKSPACE
index 265cfc4b..4b073ec8 100644
--- a/docker/bazel/files/WORKSPACE
+++ b/docker/bazel/files/WORKSPACE
@@ -1,4 +1,5 @@
-http_jar(
+new_local_repository(
name = "lombok_jar",
- url = "https://projectlombok.org/lombok-edge.jar",
+ path = "/workspace",
+ build_file = "BUILD.lombok",
) \ No newline at end of file