adds working buck file to BGPCEP provider

Change-Id: Ia4a9ee37ed57ec0862501ae9b6f622f225d764fc
diff --git a/apps/pce/app/BUCK b/apps/pce/app/BUCK
new file mode 100644
index 0000000..f25f607
--- /dev/null
+++ b/apps/pce/app/BUCK
@@ -0,0 +1,30 @@
+COMPILE_DEPS = [
+  '//lib:CORE_DEPS',
+  '//lib:COMPILE',
+  '//lib:org.osgi.compendium',
+  '//cli:onos-cli',
+  '//core/store/serializers:onos-core-serializers',
+  '//utils/rest:onlab-rest',
+  '//incubator/api:onos-incubator-api',
+  '//apps/pcep-api:onos-apps-pcep-api',
+  '//utils/misc:onlab-misc',
+  '//core/api:onos-api',
+  '//lib:org.apache.karaf.shell.console',
+  '//lib:javax.ws.rs-api',
+]
+
+TEST_DEPS = [
+  '//lib:TEST_REST',
+]
+
+osgi_jar_with_tests (
+    deps = COMPILE_DEPS,
+    test_deps = TEST_DEPS
+)
+
+onos_app (
+    title = 'PCE App',
+    category = 'default',
+    url = 'http://onosproject.org',
+    description = 'PCE as centeral controller App.',
+)
\ No newline at end of file
diff --git a/apps/pce/pceweb/BUCK b/apps/pce/pceweb/BUCK
new file mode 100644
index 0000000..d008201
--- /dev/null
+++ b/apps/pce/pceweb/BUCK
@@ -0,0 +1,19 @@
+COMPILE_DEPS = [
+    '//lib:CORE_DEPS',
+    '//apps/pce/app:onos-apps-pce-app',
+    '//cli:onos-cli',
+    '//lib:org.apache.karaf.shell.console',
+    '//core/api:onos-api',
+    '//incubator/api:onos-incubator-api',
+]
+
+osgi_jar_with_tests (
+    deps = COMPILE_DEPS,
+)
+
+onos_app (
+    title = 'PCE web application',
+    category = 'Utility',
+    url = 'http://onosproject.org',
+    description = 'Allows the user to visualize different types of paths between network entities',
+)
diff --git a/modules.defs b/modules.defs
index 3e83f70..056d4e9 100644
--- a/modules.defs
+++ b/modules.defs
@@ -84,6 +84,7 @@
 ONOS_PROVIDERS = [
     # Providers
     '//providers/bgp:onos-providers-bgp-oar',
+    '//providers/bgpcep:onos-providers-bgpcep-oar',
     '//providers/host:onos-providers-host-oar',
     '//providers/lldp:onos-providers-lldp-oar',
     '//providers/netcfghost:onos-providers-netcfghost-oar',
diff --git a/protocols/pcep/api/BUCK b/protocols/pcep/api/BUCK
index 5ced968..8104425 100644
--- a/protocols/pcep/api/BUCK
+++ b/protocols/pcep/api/BUCK
@@ -3,6 +3,7 @@
     '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
     '//apps/pcep-api:onos-apps-pcep-api',
     '//incubator/api:onos-incubator-api',
+    '//lib:netty',
 ]
 
 osgi_jar_with_tests (
diff --git a/protocols/pcep/pcepio/BUCK b/protocols/pcep/pcepio/BUCK
index 3cc9301..faa0dde 100644
--- a/protocols/pcep/pcepio/BUCK
+++ b/protocols/pcep/pcepio/BUCK
@@ -1,5 +1,10 @@
 COMPILE_DEPS = [
     '//lib:CORE_DEPS',
+    '//lib:jackson-databind',
+    '//lib:jackson-annotations',
+    '//lib:osgi-core',
+    '//lib:org.apache.karaf.shell.console',
+    '//lib:org.apache.felix.scr.annotations',
 ]
 
 osgi_jar_with_tests (
diff --git a/providers/bgpcep/BUCK b/providers/bgpcep/BUCK
new file mode 100644
index 0000000..decfdbe
--- /dev/null
+++ b/providers/bgpcep/BUCK
@@ -0,0 +1,26 @@
+BUNDLES = [
+  '//protocols/bgp/bgpio:onos-protocols-bgp-bgpio',
+  '//protocols/bgp/api:onos-protocols-bgp-api',
+  '//protocols/bgp/ctl:onos-protocols-bgp-ctl',
+  '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
+  '//apps/pcep-api:onos-apps-pcep-api',
+  '//protocols/pcep/api:onos-protocols-pcep-api',
+  '//providers/bgp/topology:onos-providers-bgp-topology',
+  '//providers/bgp/cfg:onos-providers-bgp-cfg',
+  '//protocols/pcep/ctl:onos-protocols-pcep-ctl',
+  '//providers/pcep/topology:onos-providers-pcep-topology',
+  '//providers/pcep/tunnel:onos-providers-pcep-tunnel',
+  '//providers/pcep/packet:onos-providers-pcep-packet',
+  '//providers/bgpcep/flow:onos-providers-bgpcep-flow',
+  '//apps/pce/app:onos-apps-pce-app',
+  '//apps/pce/pceweb:onos-apps-pce-pceweb',
+]
+
+onos_app (
+    title = 'BGPCEP Provider',
+    category = 'Provider',
+    url = 'http://onosproject.org',
+    included_bundles = BUNDLES,
+    description = 'BGPCEP providers.',
+)
+
diff --git a/providers/bgpcep/flow/BUCK b/providers/bgpcep/flow/BUCK
index b3468de..d7ee5a1 100644
--- a/providers/bgpcep/flow/BUCK
+++ b/providers/bgpcep/flow/BUCK
@@ -1,18 +1,12 @@
-# FIXME - BGCEP got moved
+COMPILE_DEPS = [
+  '//lib:CORE_DEPS',
+  '//lib:org.osgi.compendium',
+  '//protocols/bgp/api:onos-protocols-bgp-api',
+  '//incubator/api:onos-incubator-api',
+  '//protocols/pcep/api:onos-protocols-pcep-api',
+  '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
+]
 
-#SRC = 'src/main/java/org/onosproject/**/'
-
-#CURRENT_NAME = 'onos-bgpcep-provider-flow'
-#CURRENT_TARGET = ':' + CURRENT_NAME
-
-#COMPILE_DEPS = [
-#    '//lib:CORE_DEPS',
-#    '//protocols/bgp/api:onos-bgp-api',
-#]
-
-#osgi_jar(
-#    name = CURRENT_NAME,
-#    srcs = glob([SRC + '/*.java']),
-#    deps = COMPILE_DEPS,
-#    visibility = ['PUBLIC'],
-#)
+osgi_jar_with_tests(
+    deps = COMPILE_DEPS,
+)
diff --git a/providers/pcep/BUCK b/providers/pcep/BUCK
index 8bf9406..bcf6c31 100644
--- a/providers/pcep/BUCK
+++ b/providers/pcep/BUCK
@@ -3,6 +3,9 @@
     '//providers/pcep/tunnel:onos-providers-pcep-tunnel',
     '//protocols/pcep/api:onos-protocols-pcep-api',
     '//protocols/pcep/pcepio:onos-protocols-pcep-pcepio',
+    '//protocols/pcep/ctl:onos-protocols-pcep-ctl',
+    '//apps/pcep-api:onos-apps-pcep-api',
+    '//providers/pcep/packet:onos-providers-pcep-packet',
 ]
 
 onos_app (
diff --git a/providers/pcep/packet/BUCK b/providers/pcep/packet/BUCK
new file mode 100644
index 0000000..94b0e5b
--- /dev/null
+++ b/providers/pcep/packet/BUCK
@@ -0,0 +1,8 @@
+COMPILE_DEPS = [
+    '//lib:CORE_DEPS',
+    '//protocols/pcep/api:onos-protocols-pcep-api',
+]
+
+osgi_jar_with_tests (
+    deps = COMPILE_DEPS,
+)