Remove all references to java_library in the source BUCK build.
Change-Id: Ie0e8753b62aeff9c4b5476b0108d05e92e3decdb
diff --git a/apps/xos-integration/BUCK b/apps/xos-integration/BUCK
index 198cc6b..c1fb6c7 100644
--- a/apps/xos-integration/BUCK
+++ b/apps/xos-integration/BUCK
@@ -1,9 +1,3 @@
-SRC = 'src/main/java/org/onosproject/**/'
-TEST = 'src/test/java/org/onosproject/**/'
-
-CURRENT_NAME = 'onos-app-xos-integration'
-CURRENT_TARGET = ':' + CURRENT_NAME
-
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
@@ -13,24 +7,16 @@
'//utils/rest:onlab-rest',
]
-TEST_DEPS = [
- '//lib:TEST',
-]
-
-java_library(
- name = CURRENT_NAME,
- srcs = glob([SRC + '/*.java']),
+osgi_jar_with_tests (
deps = COMPILE_DEPS,
- visibility = ['PUBLIC'],
+ import_packages = '*,org.onosproject.cli.net',
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
-java_test(
- name = 'tests',
- srcs = glob([TEST + '/*.java']),
- deps = COMPILE_DEPS +
- TEST_DEPS +
- [CURRENT_TARGET],
- source_under_test = [CURRENT_TARGET],
+onos_app (
+ title = 'ONOS XOS Integration App',
+ category = 'Utility',
+ url = 'http://onosproject.org',
+ description = 'ONOS XOS integration application.',
)