blob: cf2024640e65db751976a821573c9b31773ffcea [file] [log] [blame]
Carmelo Cascone21eb0422019-06-17 12:00:33 -07001load("@bazel_tools//tools/jdk:default_java_toolchain.bzl", "default_java_toolchain")
2
3# This is where we define the language source and target values passed to javac
4# when building ONOS. This toolchain should be used when invoking bazel build
5# (see onos/.bazelrc)
6default_java_toolchain(
7 name = "default_toolchain",
8 source_version = "11",
9 target_version = "11",
10 visibility = [
11 "//visibility:public",
12 ],
13)
14
Ray Milkeyad83ef92018-06-05 11:05:51 -070015py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070016 name = "osgi_feature_bundler",
17 srcs = ["osgi_feature_bundler.py"],
18 main = "osgi_feature_bundler.py",
Ray Milkeyad83ef92018-06-05 11:05:51 -070019 visibility = ["//visibility:public"],
20)
21
22py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070023 name = "onos_app_tools",
24 srcs = ["onos_app_tools.py"],
25 main = "onos_app_tools.py",
Ray Milkeyad83ef92018-06-05 11:05:51 -070026 visibility = ["//visibility:public"],
27)
28
29py_binary(
Thomas Vachuska8e022a92018-07-10 14:47:38 -070030 name = "onos_app_bundler",
31 srcs = ["onos_app_bundler.py"],
32 main = "onos_app_bundler.py",
Ray Milkey170d7fb2018-06-06 09:37:20 -070033 visibility = ["//visibility:public"],
Ray Milkeyad83ef92018-06-05 11:05:51 -070034)
Thomas Vachuskaf8c8cb92018-07-11 17:12:43 -070035
Thomas Vachuskaac9e5242018-07-19 16:15:39 -070036py_binary(
37 name = "pom_generator",
38 srcs = ["pom_generator.py"],
39 main = "pom_generator.py",
40 visibility = ["//visibility:public"],
41)
42
Thomas Vachuskaf8c8cb92018-07-11 17:12:43 -070043java_binary(
44 name = "onos_yang_compiler",
45 main_class = "org.onosproject.yang.compiler.main.YangCompilerMain",
46 visibility = ["//visibility:public"],
Thomas Vachuska5b9ff6a2018-07-13 11:00:50 -070047 runtime_deps = [
48 "@onos_yang_compiler_main//jar",
Ray Milkey6d94e9f2018-07-15 18:04:26 -070049 "@slf4j_nop//jar", # TODO: Change to jdk14 after fixing verbosity
Thomas Vachuska5b9ff6a2018-07-13 11:00:50 -070050 ],
Ray Milkey6d94e9f2018-07-15 18:04:26 -070051)