Generate a test rule to run checkstyle for an onos jar file

Change-Id: I21da8d353d592de847cc019875baa59786500cfe
diff --git a/tools/build/conf/BUILD b/tools/build/conf/BUILD
new file mode 100644
index 0000000..22a1ecf
--- /dev/null
+++ b/tools/build/conf/BUILD
@@ -0,0 +1,23 @@
+checkstyle_source = "src/main/resources/onos/checkstyle.xml"
+
+suppression_source = "src/main/resources/onos/suppressions.xml"
+
+header_source = "src/main/resources/onos/onos-java.header"
+
+filegroup(
+    name = "checkstyle_xml",
+    srcs = [checkstyle_source],
+    visibility = ["//visibility:public"],
+)
+
+filegroup(
+    name = "suppressions_xml",
+    srcs = [suppression_source],
+    visibility = ["//visibility:public"],
+)
+
+filegroup(
+    name = "onos_java_header",
+    srcs = [header_source],
+    visibility = ["//visibility:public"],
+)
diff --git a/tools/build/conf/src/main/resources/onos/checkstyle.xml b/tools/build/conf/src/main/resources/onos/checkstyle.xml
index d3cc730..21ac8da 100644
--- a/tools/build/conf/src/main/resources/onos/checkstyle.xml
+++ b/tools/build/conf/src/main/resources/onos/checkstyle.xml
@@ -122,6 +122,10 @@
     <!--   <property name="fileExtensions" value="java"/> -->
     <!-- </module> -->
 
+    <module name="SuppressionFilter">
+        <property name="file" value="tools/build/conf/src/main/resources/onos/suppressions.xml"/>
+    </module>
+
     <module name="RegexpHeader">
         <!-- The following line is different for maven due to how the maven checkstyle plugin works -->
         <property name="headerFile" value="tools/build/conf/src/main/resources/onos/onos-java.header"/>
@@ -164,13 +168,13 @@
             <property name="suppressLoadErrors" value="true"/>
         </module>
         <module name="JavadocType">
-            <property name="severity" value="warning"/>
+            <property name="severity" value="ignore"/>
         </module>
         <module name="JavadocVariable">
             <!-- Suppress check for private member Javadocs.
              Possibly revist fixing these. -->
             <property name="scope" value="public"/>
-            <property name="severity" value="warning"/>
+            <property name="severity" value="ignore"/>
         </module>
         <module name="JavadocStyle"/>
         <!-- @author tag should not be used -->
@@ -309,7 +313,7 @@
         <module name="InterfaceIsType"/>
 
         <module name="VisibilityModifier">
-            <property name="severity" value="warning"/>
+            <property name="severity" value="ignore"/>
         </module>