Brian Silverman | 41cdd3e | 2019-01-19 19:48:58 -0800 | [diff] [blame] | 1 | apply plugin: 'java' |
| 2 | apply plugin: 'pmd' |
| 3 | |
| 4 | ext { |
| 5 | useJava = true |
| 6 | useCpp = false |
| 7 | skipDev = true |
| 8 | } |
| 9 | |
| 10 | apply from: "${rootDir}/shared/opencv.gradle" |
| 11 | |
| 12 | |
| 13 | |
| 14 | dependencies { |
| 15 | compile project(':wpilibj') |
| 16 | |
| 17 | compile project(':hal') |
| 18 | compile project(':wpiutil') |
| 19 | compile project(':ntcore') |
| 20 | compile project(':cscore') |
| 21 | compile project(':cameraserver') |
| 22 | } |
| 23 | |
| 24 | pmd { |
| 25 | consoleOutput = true |
| 26 | reportsDir = file("$project.buildDir/reports/pmd") |
| 27 | ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml")) |
| 28 | ruleSets = [] |
| 29 | } |
| 30 | |
| 31 | gradle.projectsEvaluated { |
| 32 | tasks.withType(JavaCompile) { |
| 33 | options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | apply from: 'publish.gradle' |
| 38 | |
| 39 | ext { |
| 40 | templateDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/") |
| 41 | templateFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/templates.json") |
| 42 | exampleDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/") |
| 43 | exampleFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/examples.json") |
| 44 | commandDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/") |
| 45 | commandFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/commands.json") |
| 46 | } |
| 47 | |
| 48 | apply from: "${rootDir}/shared/examplecheck.gradle" |