Updating Buck files to build OSGi jars
- Using osgi_jar for all modules except apps
- Adding target for installation of core modules to .m2 repo
Change-Id: I65d9e3a9567918e275191724842d7d9b1f485128
diff --git a/web/api/BUCK b/web/api/BUCK
index 4932fca..bf2d6c3 100644
--- a/web/api/BUCK
+++ b/web/api/BUCK
@@ -1,25 +1,30 @@
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
+RESOURCES_ROOT = 'src/main/resources/'
CURRENT_NAME = 'onos-rest'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
+ '//incubator/api:onos-incubator-api',
'//lib:javax.ws.rs-api',
'//utils/rest:onlab-rest',
- '//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST',
]
-java_library(
+osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
+ resources = glob([RESOURCES_ROOT + '**']),
+ resources_root = RESOURCES_ROOT,
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
+ debug = False,
+ web_context = '/onos/v1'
)
java_test(