David Pursehouse | 31c8240 | 2019-09-04 15:02:32 +0900 | [diff] [blame] | 1 | load("@rules_java//java:defs.bzl", "java_binary", "java_library") |
| 2 | |
David Ostrovsky | 7cd8475 | 2017-08-23 09:07:52 +0200 | [diff] [blame] | 3 | java_binary( |
| 4 | name = "gerrit-main-class", |
| 5 | main_class = "Main", |
| 6 | visibility = ["//visibility:public"], |
| 7 | runtime_deps = [":gerrit-main-class-lib"], |
| 8 | ) |
| 9 | |
| 10 | java_library( |
| 11 | name = "gerrit-main-class-lib", |
| 12 | srcs = ["Main.java"], |
David Ostrovsky | 43c0f3d | 2017-08-24 20:37:01 +0200 | [diff] [blame] | 13 | deps = ["//java/com/google/gerrit/launcher"], |
David Ostrovsky | 7cd8475 | 2017-08-23 09:07:52 +0200 | [diff] [blame] | 14 | ) |