bucklet for yang based OSGI libraries

Change-Id: Ieeef6357250c4e74e9c78310a65c809b3edd102b
diff --git a/apps/tenbi/BUCK b/apps/tenbi/BUCK
index 30ed481..461fddd 100644
--- a/apps/tenbi/BUCK
+++ b/apps/tenbi/BUCK
@@ -11,8 +11,8 @@
     url = 'http://onosproject.org',
     included_bundles = BUNDLES,
     description = 'TE YANG NBI.',
-    required_apps = [ 'org.onosproject.onos-app-tetopology',
-                      'org.onosproject.onos-app-tetunnel',
-                      'org.onosproject.onos-app-yms' ],
+    required_apps = [ 'org.onosproject.tetopology',
+                      'org.onosproject.tetunnel',
+                      'org.onosproject.yms' ],
 )
 
diff --git a/apps/tenbi/yangmodel/BUCK b/apps/tenbi/yangmodel/BUCK
index 4422110..3ee4e7d 100644
--- a/apps/tenbi/yangmodel/BUCK
+++ b/apps/tenbi/yangmodel/BUCK
@@ -2,7 +2,7 @@
   '//lib:CORE_DEPS'
 ]
 
-yang_library(
+yang_osgi_jar(
   deps = COMPILE_DEPS,
   name = 'onos-apps-tenbi-yangmodel',
   srcs = glob(['src/main/**/*.yang']),