blob: 55087ba754aeb99df597e737f2d3ad6d2e4574b9 [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001apply plugin: 'java'
2apply plugin: 'pmd'
3
4ext {
5 useJava = true
6 useCpp = false
7 skipDev = true
8}
9
10apply from: "${rootDir}/shared/opencv.gradle"
11
12
13
14dependencies {
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
24pmd {
25 consoleOutput = true
26 reportsDir = file("$project.buildDir/reports/pmd")
27 ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
28 ruleSets = []
29}
30
31gradle.projectsEvaluated {
32 tasks.withType(JavaCompile) {
33 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
34 }
35}
36
37apply from: 'publish.gradle'
38
39ext {
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
48apply from: "${rootDir}/shared/examplecheck.gradle"