2017-10-17 01:30:21 -04:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
ext {
|
|
|
|
|
useJava = true
|
|
|
|
|
useCpp = false
|
|
|
|
|
skipDev = true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
apply from: "${rootDir}/shared/opencv.gradle"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-10-17 01:30:21 -04:00
|
|
|
dependencies {
|
|
|
|
|
compile project(':wpilibj')
|
|
|
|
|
|
2018-04-29 13:29:07 -07:00
|
|
|
compile project(':hal')
|
|
|
|
|
compile project(':wpiutil')
|
|
|
|
|
compile project(':ntcore')
|
|
|
|
|
compile project(':cscore')
|
|
|
|
|
compile project(':cameraserver')
|
2017-10-17 01:30:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkstyle {
|
2018-05-13 17:09:56 -07:00
|
|
|
configFile = new File(rootDir, "styleguide/checkstyleExamples.xml")
|
2017-10-17 01:30:21 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pmd {
|
|
|
|
|
consoleOutput = true
|
|
|
|
|
reportsDir = file("$project.buildDir/reports/pmd")
|
|
|
|
|
ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
|
|
|
|
|
ruleSets = []
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
|
tasks.withType(JavaCompile) {
|
2017-12-12 01:06:01 -05:00
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
2017-10-17 01:30:21 -04:00
|
|
|
}
|
|
|
|
|
}
|
2017-10-21 15:33:42 -07:00
|
|
|
|
|
|
|
|
apply from: 'publish.gradle'
|