diff options
Diffstat (limited to 'docker/bazel/files/classpath')
-rw-r--r-- | docker/bazel/files/classpath/BUILD | 18 | ||||
-rw-r--r-- | docker/bazel/files/classpath/BUILD.lombok | 5 | ||||
-rw-r--r-- | docker/bazel/files/classpath/WORKSPACE | 5 |
3 files changed, 28 insertions, 0 deletions
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 |