blob: 57f700db1fd526c780077d4eef9730dae00c91cc [file] [log] [blame]
Carmelo Cascone21eb0422019-06-17 12:00:33 -07001load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")
2
Carmelo Casconed33d3b42019-06-18 12:12:36 -07003# 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 Cascone21eb0422019-06-17 12:00:33 -07006# (see onos/.bazelrc)
7default_java_toolchain(
8 name = "default_toolchain",
9 source_version = "11",
10 target_version = "11",
Carmelo Casconed33d3b42019-06-18 12:12:36 -070011 visibility = ["//visibility:public"],
12)
13
14alias(
15 name = "default_jdk",
16 actual = "@bazel_tools//tools/jdk:remote_jdk11",
17 visibility = ["//visibility:public"],
Carmelo Cascone21eb0422019-06-17 12:00:33 -070018)
19
Ray Milkeyad83ef92018-06-05 11:05:51 -070020py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070021 name = "osgi_feature_bundler",
22 srcs = ["osgi_feature_bundler.py"],
23 main = "osgi_feature_bundler.py",
Ray Milkeyad83ef92018-06-05 11:05:51 -070024 visibility = ["//visibility:public"],
25)
26
27py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070028 name = "onos_app_tools",
29 srcs = ["onos_app_tools.py"],
30 main = "onos_app_tools.py",
Ray Milkeyad83ef92018-06-05 11:05:51 -070031 visibility = ["//visibility:public"],
32)
33
34py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070035 name = "onos_app_bundler",
36 srcs = ["onos_app_bundler.py"],
37 main = "onos_app_bundler.py",
Ray Milkey170d7fb2018-06-06 09:37:20 -070038 visibility = ["//visibility:public"],
Ray Milkeyad83ef92018-06-05 11:05:51 -070039)
Thomas Vachuskaf8c8cb92018-07-11 17:12:43 -070040
Thomas Vachuskaac9e5242018-07-19 16:15:39 -070041py_binary(
42 name = "pom_generator",
43 srcs = ["pom_generator.py"],
44 main = "pom_generator.py",
45 visibility = ["//visibility:public"],
46)
47
Thomas Vachuskaf8c8cb92018-07-11 17:12:43 -070048java_binary(
49 name = "onos_yang_compiler",
50 main_class = "org.onosproject.yang.compiler.main.YangCompilerMain",
51 visibility = ["//visibility:public"],
Thomas Vachuska5b9ff6a2018-07-13 11:00:50 -070052 runtime_deps = [
53 "@onos_yang_compiler_main//jar",
Ray Milkey6d94e9f2018-07-15 18:04:26 -070054 "@slf4j_nop//jar", # TODO: Change to jdk14 after fixing verbosity
Thomas Vachuska5b9ff6a2018-07-13 11:00:50 -070055 ],
Ray Milkey6d94e9f2018-07-15 18:04:26 -070056)