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