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
diff --git a/utils/junit/BUCK b/utils/junit/BUCK
index b5394e5..24bcf72 100644
--- a/utils/junit/BUCK
+++ b/utils/junit/BUCK
@@ -13,7 +13,7 @@
     '//lib:guava-testlib',
 ]
 
-java_library(
+osgi_jar(
     name = CURRENT_NAME,
     srcs = glob([SRC + '/*.java']),
     deps = SRC_DEPS,
diff --git a/utils/misc/BUCK b/utils/misc/BUCK
index 0832322..72dacf1 100644
--- a/utils/misc/BUCK
+++ b/utils/misc/BUCK
@@ -11,7 +11,7 @@
     '//lib:TEST',
 ]
 
-java_library(
+osgi_jar(
     name = CURRENT_NAME,
     srcs = glob([SRC + '/*.java']),
     deps = COMPILE_DEPS,
@@ -26,3 +26,4 @@
            [CURRENT_TARGET],
     source_under_test = [CURRENT_TARGET],
 )
+
diff --git a/utils/osgi/BUCK b/utils/osgi/BUCK
index 195bf3d..ef9ac97 100644
--- a/utils/osgi/BUCK
+++ b/utils/osgi/BUCK
@@ -11,7 +11,7 @@
     '//lib:TEST',
 ]
 
-java_library(
+osgi_jar(
   name = CURRENT_NAME,
   srcs = glob([SRC + '/*.java']),
   deps = COMPILE_DEPS,
diff --git a/utils/rest/BUCK b/utils/rest/BUCK
index d070641..8748675 100644
--- a/utils/rest/BUCK
+++ b/utils/rest/BUCK
@@ -15,7 +15,7 @@
     '//lib:TEST',
 ]
 
-java_library(
+osgi_jar(
     name = CURRENT_NAME,
     srcs = glob([SRC + '/*.java']),
     deps = COMPILE_DEPS,