Support to build openstack related apps using Bazel
Change-Id: Ibc9f43a8fd92bb41b162a88a1eb3e8c8c5ad990a
diff --git a/core/store/primitives/BUILD b/core/store/primitives/BUILD
index 1d726e8..0a925d1 100644
--- a/core/store/primitives/BUILD
+++ b/core/store/primitives/BUILD
@@ -14,50 +14,57 @@
]
_primitive_package_names = [
- 'barrier',
- 'collection',
- 'counter',
- 'election',
- 'idgenerator',
- 'iterator',
- 'list',
- 'lock',
- 'map',
- 'multimap',
- 'multiset',
- 'queue',
- 'semaphore',
- 'set',
- 'transaction',
- 'tree',
- 'value',
- 'workqueue',
+ "barrier",
+ "collection",
+ "counter",
+ "election",
+ "idgenerator",
+ "iterator",
+ "list",
+ "lock",
+ "map",
+ "multimap",
+ "multiset",
+ "queue",
+ "semaphore",
+ "set",
+ "transaction",
+ "tree",
+ "value",
+ "workqueue",
]
# A list of all core primitive packages for dynamic class loading
-PRIMITIVE_PACKAGES = ','.join(['io.atomix.primitive.session.impl'] + ['io.atomix.core.{primitive},io.atomix.core.{primitive}.impl'.format(primitive=primitive) for primitive in _primitive_package_names])
+PRIMITIVE_PACKAGES = ",".join(["io.atomix.primitive.session.impl"] + ["io.atomix.core.{primitive},io.atomix.core.{primitive}.impl".format(primitive = primitive) for primitive in _primitive_package_names])
# Base package names for core Atomix protocols
_protocol_package_names = [
- 'raft',
- 'backup',
+ "raft",
+ "backup",
]
# A list of all core protocol packages for dynamic class loading
-PROTOCOL_PACKAGES = ','.join(['io.atomix.primitive.partition.impl'] + ['io.atomix.protocols.{protocol},io.atomix.protocols.{protocol}.partition'.format(protocol=protocol) for protocol in _protocol_package_names] + ['io.atomix.protocols.gossip'])
+PROTOCOL_PACKAGES = ",".join(["io.atomix.primitive.partition.impl"] + ["io.atomix.protocols.{protocol},io.atomix.protocols.{protocol}.partition".format(protocol = protocol) for protocol in _protocol_package_names] + ["io.atomix.protocols.gossip"])
# A list of all additional core packages used in dynamic class loading
-CORE_PACKAGES = ','.join(['io.atomix.core.profile', 'io.atomix.core.profile.impl'])
+CORE_PACKAGES = ",".join([
+ "io.atomix.core.profile",
+ "io.atomix.core.profile.impl",
+])
# A list of all dynamically loadable Atomix packages
-INCLUDE_PACKAGES = ','.join([PRIMITIVE_PACKAGES, PROTOCOL_PACKAGES, CORE_PACKAGES])
+INCLUDE_PACKAGES = ",".join([
+ PRIMITIVE_PACKAGES,
+ PROTOCOL_PACKAGES,
+ CORE_PACKAGES,
+])
-ALL_PACKAGES = '*'
+ALL_PACKAGES = "*"
osgi_jar_with_tests(
name = "onos-core-primitives",
+ import_packages = INCLUDE_PACKAGES + "," + ALL_PACKAGES,
test_deps = TEST_DEPS,
visibility = ["//visibility:public"],
deps = COMPILE_DEPS,
- import_packages = INCLUDE_PACKAGES + ',' + ALL_PACKAGES,
)