Brian O'Connor
Committed by Gerrit Code Review

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
Showing 76 changed files with 219 additions and 88 deletions
......@@ -3,15 +3,22 @@ DEPS = [
'//utils/junit:onlab-junit',
'//utils/misc:onlab-misc',
'//utils/rest:onlab-rest',
'//core/api:onos-api',
'//incubator/api:onos-incubator-api',
'//incubator/net:onos-incubator-net',
'//core/net:onos-core-net',
'//core/common:onos-core-common',
'//core/store/primitives:onos-core-primitives',
'//core/store/serializers:onos-core-serializers',
'//core/store/dist:onos-core-dist',
'//core/security:onos-security',
'//core/store/persistence:onos-core-persistence',
'//incubator/api:onos-incubator-api',
'//incubator/net:onos-incubator-net',
'//incubator/core:onos-incubator-core',
'//incubator/store:onos-incubator-store',
'//incubator/rpc:onos-incubator-rpc',
'//cli:onos-cli',
'//protocols/rest/api:onos-restsb-api',
......@@ -122,3 +129,35 @@ java_library(
visibility = ['PUBLIC'],
deps = DEPS
)
INSTALL = [
'//utils/misc:onlab-misc-install',
'//utils/osgi:onlab-osgi-install',
'//utils/rest:onlab-rest-install',
'//core/api:onos-api-install',
'//incubator/api:onos-incubator-api-install',
'//core/net:onos-core-net-install',
'//core/common:onos-core-common-install',
'//core/store/dist:onos-core-dist-install',
'//core/store/primitives:onos-core-primitives-install',
'//core/store/persistence:onos-core-persistence-install',
'//core/store/serializers:onos-core-serializers-install',
'//incubator/net:onos-incubator-net-install',
'//incubator/core:onos-incubator-core-install',
'//incubator/store:onos-incubator-store-install',
'//incubator/rpc:onos-incubator-rpc-install',
'//core/security:onos-security-install',
'//web/api:onos-rest-install',
'//web/gui:onos-gui-install',
'//cli:onos-cli-install',
]
java_library(
name = 'install',
visibility = ['PUBLIC'],
deps = INSTALL
)
\ No newline at end of file
......
import random
DEBUG_ARG='JAVA_TOOL_OPTIONS="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=5005,suspend=y"'
......@@ -82,16 +83,18 @@ def osgi_jar(
)
### .m2 Install
mvn_cmd = ' '.join(('mvn install:install-file',
mvn_cmd = ' '.join(( 'mvn install:install-file',
'-Dfile=$(location :%s)' % name,
'-DgroupId=%s' % group_id,
'-DartifactId=%s' % name,
'-Dversion=%s' % version,
'-Dpackaging=jar'
))
'-Dpackaging=jar' ))
# TODO This rule must be run every time, adding random number as rule input.
# We should make this configurable, perhaps with a flag.
cmd = 'FOO=%s ' % random.random() + mvn_cmd + ' > $OUT'
genrule(
name = name + '-install',
bash = mvn_cmd + ' > $OUT',
bash = cmd,
out = 'install.log',
visibility = visibility,
)
......
......@@ -11,7 +11,7 @@ COMPILE_DEPS = [
'//core/common:onos-core-common',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//core/api:onos-api-tests',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = SRC_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -22,7 +22,7 @@ TEST_DEPS = [
'//core/common:onos-core-common-tests',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -32,7 +32,7 @@ TEST_DEPS = [
'//core/api:onos-api-tests',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//incubator/api:onos-incubator-api'
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -11,7 +11,7 @@ COMPILE_DEPS = [
'//protocols/rest/api:onos-restsb-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//protocols/netconf/api:onos-netconf-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -16,7 +16,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//protocols/netconf/api:onos-netconf-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//drivers/utilities:onos-drivers-utilities',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//protocols/netconf/api:onos-netconf-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -10,7 +10,7 @@ COMPILE_DEPS = [
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
SRC = 'src/main/java/org/onosproject/incubator/**/'
TEST = 'src/test/java/org/onosproject/incubator/**/'
CURRENT_NAME = 'onos-incubator-core'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
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],
)
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
SRC = 'src/main/java/org/onosproject/incubator/**/'
TEST = 'src/test/java/org/onosproject/incubator/**/'
CURRENT_NAME = 'onos-incubator-rpc'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
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/incubator/**/'
TEST = 'src/test/java/org/onosproject/incubator/**/'
CURRENT_NAME = 'onos-incubator-store'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
'//core/store/dist:onos-core-dist',
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
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],
)
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//protocols/bgp/bgpio:onos-bgpio',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -17,7 +17,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -4,13 +4,6 @@ TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:netty-buffer',
#'//lib:netty-'
#'//lib:org.apache.karaf.shell.console',
#'//cli:onos-cli',
#'//utils/rest:onlab-rest',
#'//lib:javax.ws.rs-api',
#'//core/store/serializers:onos-core-serializers',
#'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
......@@ -27,7 +20,7 @@ java_library(
# onos-isis-api
java_library(
osgi_jar(
name = 'onos-isis-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
......@@ -45,7 +38,7 @@ java_test(
# onos-isis-isisio
java_library(
osgi_jar(
name = 'onos-isis-isisio',
srcs = glob(['isisio/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-isis-api'],
......
......@@ -7,7 +7,7 @@ COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//core/api:onos-api-tests',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//core/api:onos-api-tests',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -17,7 +17,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//lib:netty-codec',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//protocols/pcep/pcepio:onos-pcep-pcepio',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//protocols/pcep/api:onos-pcep-controller-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -21,7 +21,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ COMPILE_DEPS = [
'//lib:mibs-rfc',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -18,7 +18,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//protocols/bgp/api:onos-bgp-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -8,7 +8,7 @@ COMPILE_DEPS = [
'//protocols/bgp/api:onos-bgp-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -7,7 +7,7 @@ COMPILE_DEPS = [
'//lib:CORE_DEPS',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -12,7 +12,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -9,7 +9,7 @@ COMPILE_DEPS = [
'//protocols/netconf/api:onos-netconf-api',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -15,7 +15,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -15,7 +15,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -14,7 +14,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -15,7 +15,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -15,7 +15,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -18,7 +18,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -18,7 +18,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -19,7 +19,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -20,7 +20,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -13,7 +13,7 @@ TEST_DEPS = [
'//lib:guava-testlib',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = SRC_DEPS,
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......@@ -26,3 +26,4 @@ java_test(
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
......@@ -11,7 +11,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
......@@ -15,7 +15,7 @@ TEST_DEPS = [
'//lib:TEST',
]
java_library(
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
deps = COMPILE_DEPS,
......
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(
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
RESOURCES_ROOT = 'src/main/resources/'
CURRENT_NAME = 'onos-gui'
CURRENT_TARGET = ':' + CURRENT_NAME
......@@ -21,13 +22,13 @@ 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'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
java_test(
......