Squashed 'third_party/allwpilib_2019/' content from commit bd05dfa1c
Change-Id: I2b1c2250cdb9b055133780c33593292098c375b7
git-subtree-dir: third_party/allwpilib_2019
git-subtree-split: bd05dfa1c7cca74c4fac451e7b9d6a37e7b53447
diff --git a/wpilibjExamples/build.gradle b/wpilibjExamples/build.gradle
new file mode 100644
index 0000000..55087ba
--- /dev/null
+++ b/wpilibjExamples/build.gradle
@@ -0,0 +1,48 @@
+apply plugin: 'java'
+apply plugin: 'pmd'
+
+ext {
+ useJava = true
+ useCpp = false
+ skipDev = true
+}
+
+apply from: "${rootDir}/shared/opencv.gradle"
+
+
+
+dependencies {
+ compile project(':wpilibj')
+
+ compile project(':hal')
+ compile project(':wpiutil')
+ compile project(':ntcore')
+ compile project(':cscore')
+ compile project(':cameraserver')
+}
+
+pmd {
+ consoleOutput = true
+ reportsDir = file("$project.buildDir/reports/pmd")
+ ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
+ ruleSets = []
+}
+
+gradle.projectsEvaluated {
+ tasks.withType(JavaCompile) {
+ options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
+ }
+}
+
+apply from: 'publish.gradle'
+
+ext {
+ templateDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/")
+ templateFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/templates.json")
+ exampleDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/")
+ exampleFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/examples.json")
+ commandDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/")
+ commandFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/commands.json")
+}
+
+apply from: "${rootDir}/shared/examplecheck.gradle"