Bazel build files for protocols

Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
diff --git a/core/store/primitives/BUILD b/core/store/primitives/BUILD
new file mode 100644
index 0000000..96a99b9
--- /dev/null
+++ b/core/store/primitives/BUILD
@@ -0,0 +1,22 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+    "@atomix//jar",
+    "//core/common:onos-core-common",
+    "//core/store/serializers:onos-core-serializers",
+    "//incubator/api:onos-incubator-api",
+]
+
+TEST_DEPS = TEST + [
+    "@commons_math3//jar",
+    "@netty_handler//jar",
+    "@netty_buffer//jar",
+    "@netty_codec//jar",
+    "@netty_resolver//jar",
+    "//core/api:onos-api-tests",
+]
+
+osgi_jar_with_tests(
+    name = "onos-core-primitives",
+    test_deps = TEST_DEPS,
+    visibility = ["//visibility:public"],
+    deps = COMPILE_DEPS,
+)