fix buck sonar problem with empty jar file

Change-Id: I49e32022e4b2be1e396ddb507e98caf307a37bfd
diff --git a/apps/p4runtime-test/BUCK b/apps/p4runtime-test/BUCK
index c91aced..66fc291 100644
--- a/apps/p4runtime-test/BUCK
+++ b/apps/p4runtime-test/BUCK
@@ -39,7 +39,8 @@
     '//lib:minimal-json',
 ]
 
-osgi_jar_with_tests(
-    deps = COMPILE_DEPS,
-    test_deps = TEST_DEPS,
+java_test(
+    name = "onos-apps-p4runtime-test-tests",
+    srcs = glob([ 'src/test/java/**/*.java' ]),
+    deps = COMPILE_DEPS + TEST_DEPS,
 )