blob: 651d8e5d24b35787904c1c124002fca9f84ea2ee [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001apply plugin: 'java'
Brian Silverman41cdd3e2019-01-19 19:48:58 -08002
3ext {
4 useJava = true
5 useCpp = false
6 skipDev = true
7}
8
9apply from: "${rootDir}/shared/opencv.gradle"
10
11
12
13dependencies {
James Kuszmaul4b81d302019-12-14 20:53:14 -080014 implementation project(':wpilibj')
Brian Silverman41cdd3e2019-01-19 19:48:58 -080015
James Kuszmaul4b81d302019-12-14 20:53:14 -080016 implementation project(':hal')
17 implementation project(':wpiutil')
18 implementation project(':ntcore')
19 implementation project(':cscore')
20 implementation project(':cameraserver')
21 implementation project(':wpilibOldCommands')
22 implementation project(':wpilibNewCommands')
Brian Silverman41cdd3e2019-01-19 19:48:58 -080023}
24
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080025if (!project.hasProperty('skipPMD')) {
26 apply plugin: 'pmd'
27
28 pmd {
29 consoleOutput = true
30 reportsDir = file("$project.buildDir/reports/pmd")
31 ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
32 ruleSets = []
33 }
Brian Silverman41cdd3e2019-01-19 19:48:58 -080034}
35
36gradle.projectsEvaluated {
37 tasks.withType(JavaCompile) {
James Kuszmaul4f3ad3c2019-12-01 16:35:21 -080038 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Werror"
Brian Silverman41cdd3e2019-01-19 19:48:58 -080039 }
40}
41
42apply from: 'publish.gradle'
43
44ext {
45 templateDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/")
46 templateFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/templates/templates.json")
47 exampleDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/")
48 exampleFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/examples/examples.json")
49 commandDirectory = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/")
50 commandFile = new File("$projectDir/src/main/java/edu/wpi/first/wpilibj/commands/commands.json")
51}
52
James Kuszmaul4b81d302019-12-14 20:53:14 -080053ext {
54 isCppCommands = false
55}
Brian Silverman41cdd3e2019-01-19 19:48:58 -080056apply from: "${rootDir}/shared/examplecheck.gradle"