Rename our allwpilib (which is now 2020) to not have 2019 in the name
Change-Id: I3c07f85ed32ab8b97db765a9b43f2a6ce7da964a
diff --git a/shared/java/javastyle.gradle b/shared/java/javastyle.gradle
new file mode 100644
index 0000000..eec3796
--- /dev/null
+++ b/shared/java/javastyle.gradle
@@ -0,0 +1,20 @@
+
+apply plugin: 'checkstyle'
+
+checkstyle {
+ toolVersion = "8.12"
+ configDirectory = file("${project.rootDir}/styleguide")
+ config = resources.text.fromFile(new File(configDirectory.get().getAsFile(), "checkstyle.xml"))
+}
+
+if (!project.hasProperty('skipPMD')) {
+ apply plugin: 'pmd'
+
+ pmd {
+ toolVersion = '6.7.0'
+ consoleOutput = true
+ reportsDir = file("$project.buildDir/reports/pmd")
+ ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
+ ruleSets = []
+ }
+}