From a9aafe2d794b7c0aacb37c7b4e6ba1ec359dc2a9 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 2 May 2018 15:54:47 +0200 Subject: docker bazel: use local lombok.jar file --- docker/bazel/files/BUILD | 12 ++++++------ docker/bazel/files/BUILD.lombok | 5 +++++ docker/bazel/files/WORKSPACE | 5 +++-- 3 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 docker/bazel/files/BUILD.lombok 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 -- cgit