Jian Li
Committed by Gerrit Code Review

Add BUCK build script for graphitemetrics application

Change-Id: I9819eb183175b701aa7974a1d29be3cd62ff0be5
...@@ -93,6 +93,7 @@ DEPS = [ ...@@ -93,6 +93,7 @@ DEPS = [
93 '//apps/iptopology-api:onos-app-iptopology-api', 93 '//apps/iptopology-api:onos-app-iptopology-api',
94 '//apps/metrics:onos-app-metrics', 94 '//apps/metrics:onos-app-metrics',
95 '//apps/gangliametrics:onos-app-ganglia', 95 '//apps/gangliametrics:onos-app-ganglia',
96 + '//apps/graphitemetrics:onos-app-graphite',
96 '//apps/mfwd:onos-app-mfwd', 97 '//apps/mfwd:onos-app-mfwd',
97 '//apps/mlb:onos-app-mlb', 98 '//apps/mlb:onos-app-mlb',
98 '//apps/mobility:onos-app-mobility', 99 '//apps/mobility:onos-app-mobility',
......
1 +SRC = 'src/main/java/org/onosproject/**/'
2 +TEST = 'src/main/java/org/onosproject/**/'
3 +
4 +CURRENT_NAME = 'onos-app-graphite'
5 +CURRENT_TARGET = ':' + CURRENT_NAME
6 +
7 +COMPILE_DEPS = [
8 + '//lib:CORE_DEPS',
9 + '//lib:gmetric4j',
10 + '//lib:metrics-graphite',
11 +]
12 +
13 +TEST_DEPS = [
14 + '//lib:TEST',
15 +]
16 +
17 +java_library(
18 + name = CURRENT_NAME,
19 + srcs = glob([SRC + '/*.java']),
20 + deps = COMPILE_DEPS,
21 + visibility = ['PUBLIC'],
22 +)
23 +
24 +java_test(
25 + name = 'tests',
26 + srcs = glob([TEST + '/*.java']),
27 + deps = COMPILE_DEPS +
28 + TEST_DEPS +
29 + [CURRENT_TARGET],
30 + source_under_test = [CURRENT_TARGET],
31 +)
...@@ -118,8 +118,6 @@ maven_jar( ...@@ -118,8 +118,6 @@ maven_jar(
118 license = 'Apache2.0', 118 license = 'Apache2.0',
119 ) 119 )
120 120
121 -
122 -
123 maven_jar( 121 maven_jar(
124 name = 'jackson-core', 122 name = 'jackson-core',
125 id = 'com.fasterxml.jackson.core:jackson-core:2.7.0', 123 id = 'com.fasterxml.jackson.core:jackson-core:2.7.0',
...@@ -732,6 +730,13 @@ maven_jar( ...@@ -732,6 +730,13 @@ maven_jar(
732 ) 730 )
733 731
734 maven_jar( 732 maven_jar(
733 + name = 'metrics-graphite',
734 + id = 'io.dropwizard.metrics:metrics-graphite:3.1.2',
735 + sha1 = '15a68399652c6123fe6e4c82ac4f0749e2eb6583',
736 + license = 'Apache2.0',
737 +)
738 +
739 +maven_jar(
735 name = 'concurrent-trees', 740 name = 'concurrent-trees',
736 id = 'com.googlecode.concurrent-trees:concurrent-trees:2.4.0', 741 id = 'com.googlecode.concurrent-trees:concurrent-trees:2.4.0',
737 sha1 = '2e505b78f9216abebbbdf1c3254bf9f4c565ae43', 742 sha1 = '2e505b78f9216abebbbdf1c3254bf9f4c565ae43',
......