Ray Milkey

Buckify remaining providers

Change-Id: Ide265b68d809ccea2ea8900993999bf8ae3184fc
......@@ -21,8 +21,8 @@ CORE = [
'//cli:onos-cli',
'//protocols/rest/api:onos-restsb-api',
'//protocols/rest/ctl:onos-restsb-ctl',
'//protocols/rest/api:onos-protocols-rest-api',
'//protocols/rest/ctl:onos-protocols-rest-ctl',
'//protocols/bgp/bgpio:onos-bgpio',
'//protocols/bgp/api:onos-bgp-api',
'//protocols/bgp/ctl:onos-bgp-ctl',
......@@ -62,8 +62,8 @@ CORE = [
'//providers/openflow/meter:onos-providers-openflow-meter',
'//providers/ovsdb/device:onos-ovsdb-provider-device',
'//providers/ovsdb/tunnel:onos-ovsdb-provider-tunnel',
'//providers/rest/device:onos-restsb-provider-device',
'//providers/snmp/device:onos-snmp-provider-device',
'//providers/rest/device:onos-providers-rest-device',
'//providers/snmp/device:onos-providers-snmp-device',
'//web/api:onos-rest',
'//web/gui:onos-gui',
......@@ -82,6 +82,7 @@ APPS = [
'//providers/pcep:onos-providers-pcep-oar',
'//providers/null:onos-providers-null-oar',
'//providers/openflow/base:onos-providers-openflow-base-oar',
'//providers/rest:onos-providers-rest-oar',
# Apps
'//apps/dhcp:onos-apps-dhcp-oar',
......
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//incubator/api:onos-incubator-api',
'//utils/rest:onlab-rest',
'//drivers/utilities:onos-drivers-utilities',
'//protocols/rest/api:onos-restsb-api',
'//protocols/rest/api:onos-protocols-rest-api',
]
osgi_jar(
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-restsb-api'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
'//utils/rest:onlab-rest',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-restsb-ctl'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
......@@ -14,25 +9,14 @@ COMPILE_DEPS = [
'//lib:jersey-guava',
'//lib:aopalliance-repackaged',
'//lib:javax.inject',
'//protocols/rest/api:onos-restsb-api',
'//protocols/rest/api:onos-protocols-rest-api',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
BUNDLES = [
'//providers/rest/device:onos-providers-rest-device',
'//protocols/rest/api:onos-protocols-rest-api',
'//protocols/rest/ctl:onos-protocols-rest-ctl',
'//lib:jersey-client',
'//lib:commons-io',
'//lib:httpclient-osgi',
'//lib:httpcore-osgi',
]
onos_app (
title = 'PCEP Provider',
category = 'Provider',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
description = 'REST protocol southbound providers.',
)
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-restsb-provider-device'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
'//apps/pcep-api:onos-apps-pcep-api',
'//incubator/api:onos-incubator-api',
'//protocols/rest/api:onos-restsb-api',
'//protocols/rest/api:onos-protocols-rest-api',
'//lib:javax.ws.rs-api',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-snmp-provider-device'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.servicemix.bundles.snmp4j',
......@@ -16,22 +10,7 @@ COMPILE_DEPS = [
'//protocols/snmp/ctl:onos-snmp-ctl',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......