2017-10-17 01:30:21 -04:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
apply plugin: 'pmd'
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
compile project(':wpilibj')
|
|
|
|
|
|
|
|
|
|
compile 'edu.wpi.first.wpiutil:wpiutil-java:3.+'
|
|
|
|
|
compile 'edu.wpi.first.ntcore:ntcore-java:4.+'
|
|
|
|
|
compile 'org.opencv:opencv-java:3.2.0'
|
|
|
|
|
compile 'edu.wpi.first.cscore:cscore-java:1.+'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
checkstyle {
|
|
|
|
|
configFile = new File(rootDir, "styleguide/checkstyleEclipse.xml")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pmd {
|
|
|
|
|
consoleOutput = true
|
|
|
|
|
reportsDir = file("$project.buildDir/reports/pmd")
|
|
|
|
|
ruleSetFiles = files(new File(rootDir, "styleguide/pmd-ruleset.xml"))
|
|
|
|
|
ruleSets = []
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Werror"
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-10-21 15:33:42 -07:00
|
|
|
|
|
|
|
|
apply from: 'publish.gradle'
|