Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 1 | apply plugin: 'java' |
| 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 | implementation project(':wpilibj') |
| 15 | |
Austin Schuh | 1e69f94 | 2020-11-14 15:06:14 -0800 | [diff] [blame^] | 16 | implementation project(':wpimath') |
Brian Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 17 | implementation project(':hal') |
| 18 | implementation project(':wpiutil') |
| 19 | implementation project(':ntcore') |
| 20 | implementation project(':cscore') |
| 21 | implementation project(':cameraserver') |
| 22 | implementation project(':wpilibOldCommands') |
| 23 | implementation project(':wpilibNewCommands') |
| 24 | } |
| 25 | |
| 26 | if (!project.hasProperty('skipPMD')) { |
| 27 | apply plugin: 'pmd' |
| 28 | |
| 29 | pmd { |
| 30 | consoleOutput = true |
| 31 | reportsDir = file("$project.buildDir/reports/pmd") |
| 32 | ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml")) |
| 33 | ruleSets = [] |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | gradle.projectsEvaluated { |
| 38 | tasks.withType(JavaCompile) { |
| 39 | options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Werror" |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | tasks.register('buildDesktopJava') { |
| 44 | it.dependsOn tasks.withType(JavaCompile) |
| 45 | } |
| 46 | |
| 47 | apply from: 'publish.gradle' |
| 48 | |
| 49 | ext { |
| 50 | templateDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/") |
| 51 | templateFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/templates.json") |
| 52 | exampleDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/") |
| 53 | exampleFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/examples.json") |
| 54 | commandDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/") |
| 55 | commandFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/commands.json") |
| 56 | } |
| 57 | |
| 58 | ext { |
| 59 | isCppCommands = false |
| 60 | } |
| 61 | apply from: "${rootDir}/shared/examplecheck.gradle" |