From a4345d11453fc7d80e7814c27605ce1a5caa23f8 Mon Sep 17 00:00:00 2001 From: Roel Spilker Date: Wed, 8 Jan 2020 01:20:27 +0100 Subject: new versions for docker --- docker/bazel/files/classpath/BUILD | 18 ++++++++++++++++++ docker/bazel/files/classpath/BUILD.lombok | 5 +++++ docker/bazel/files/classpath/WORKSPACE | 5 +++++ 3 files changed, 28 insertions(+) create mode 100644 docker/bazel/files/classpath/BUILD create mode 100644 docker/bazel/files/classpath/BUILD.lombok create mode 100644 docker/bazel/files/classpath/WORKSPACE (limited to 'docker/bazel/files/classpath') diff --git a/docker/bazel/files/classpath/BUILD b/docker/bazel/files/classpath/BUILD new file mode 100644 index 00000000..4a9c7655 --- /dev/null +++ b/docker/bazel/files/classpath/BUILD @@ -0,0 +1,18 @@ +java_binary( + name = "ProjectRunner", + main_class = "HelloWorld", + srcs = glob(["src/main/java/*.java"]), + deps = [":lombok"], +) + +java_plugin( + 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"], +) \ No newline at end of file diff --git a/docker/bazel/files/classpath/BUILD.lombok b/docker/bazel/files/classpath/BUILD.lombok new file mode 100644 index 00000000..06836d17 --- /dev/null +++ b/docker/bazel/files/classpath/BUILD.lombok @@ -0,0 +1,5 @@ +java_import( + name = "jar", + jars = ["lombok.jar"], + visibility = ["//visibility:public"] +) diff --git a/docker/bazel/files/classpath/WORKSPACE b/docker/bazel/files/classpath/WORKSPACE new file mode 100644 index 00000000..d2974805 --- /dev/null +++ b/docker/bazel/files/classpath/WORKSPACE @@ -0,0 +1,5 @@ +new_local_repository( + name = "lombok_jar", + path = "/workspace/classpath", + build_file = "BUILD.lombok", +) \ No newline at end of file -- cgit