Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 1 | load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain") |
| 2 | |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame] | 3 | # This is where we define the JDK used to build ONOS, as well as the language |
| 4 | # source and target values passed to javac. The :default_toolchain and |
| 5 | # :default_jdk are expected to be passed as arguments when invoking bazel build |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 6 | # (see onos/.bazelrc) |
| 7 | default_java_toolchain( |
| 8 | name = "default_toolchain", |
| 9 | source_version = "11", |
| 10 | target_version = "11", |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame] | 11 | visibility = ["//visibility:public"], |
| 12 | ) |
| 13 | |
| 14 | alias( |
| 15 | name = "default_jdk", |
| 16 | actual = "@bazel_tools//tools/jdk:remote_jdk11", |
| 17 | visibility = ["//visibility:public"], |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 18 | ) |
| 19 | |
Ray Milkey | ad83ef9 | 2018-06-05 11:05:51 -0700 | [diff] [blame] | 20 | py_binary( |
Thomas Vachuska | 8e022a9 | 2018-07-10 14:47:38 -0700 | [diff] [blame] | 21 | name = "osgi_feature_bundler", |
| 22 | srcs = ["osgi_feature_bundler.py"], |
| 23 | main = "osgi_feature_bundler.py", |
Ray Milkey | ad83ef9 | 2018-06-05 11:05:51 -0700 | [diff] [blame] | 24 | visibility = ["//visibility:public"], |
| 25 | ) |
| 26 | |
| 27 | py_binary( |
Thomas Vachuska | 8e022a9 | 2018-07-10 14:47:38 -0700 | [diff] [blame] | 28 | name = "onos_app_tools", |
| 29 | srcs = ["onos_app_tools.py"], |
| 30 | main = "onos_app_tools.py", |
Ray Milkey | ad83ef9 | 2018-06-05 11:05:51 -0700 | [diff] [blame] | 31 | visibility = ["//visibility:public"], |
| 32 | ) |
| 33 | |
| 34 | py_binary( |
Thomas Vachuska | 8e022a9 | 2018-07-10 14:47:38 -0700 | [diff] [blame] | 35 | name = "onos_app_bundler", |
| 36 | srcs = ["onos_app_bundler.py"], |
| 37 | main = "onos_app_bundler.py", |
Ray Milkey | 170d7fb | 2018-06-06 09:37:20 -0700 | [diff] [blame] | 38 | visibility = ["//visibility:public"], |
Ray Milkey | ad83ef9 | 2018-06-05 11:05:51 -0700 | [diff] [blame] | 39 | ) |
Thomas Vachuska | f8c8cb9 | 2018-07-11 17:12:43 -0700 | [diff] [blame] | 40 | |
Thomas Vachuska | ac9e524 | 2018-07-19 16:15:39 -0700 | [diff] [blame] | 41 | py_binary( |
| 42 | name = "pom_generator", |
| 43 | srcs = ["pom_generator.py"], |
| 44 | main = "pom_generator.py", |
| 45 | visibility = ["//visibility:public"], |
| 46 | ) |
| 47 | |
Thomas Vachuska | f8c8cb9 | 2018-07-11 17:12:43 -0700 | [diff] [blame] | 48 | java_binary( |
| 49 | name = "onos_yang_compiler", |
| 50 | main_class = "org.onosproject.yang.compiler.main.YangCompilerMain", |
| 51 | visibility = ["//visibility:public"], |
Thomas Vachuska | 5b9ff6a | 2018-07-13 11:00:50 -0700 | [diff] [blame] | 52 | runtime_deps = [ |
| 53 | "@onos_yang_compiler_main//jar", |
Ray Milkey | 6d94e9f | 2018-07-15 18:04:26 -0700 | [diff] [blame] | 54 | "@slf4j_nop//jar", # TODO: Change to jdk14 after fixing verbosity |
Thomas Vachuska | 5b9ff6a | 2018-07-13 11:00:50 -0700 | [diff] [blame] | 55 | ], |
Ray Milkey | 6d94e9f | 2018-07-15 18:04:26 -0700 | [diff] [blame] | 56 | ) |