mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
31 lines
746 B
Groovy
31 lines
746 B
Groovy
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"
|
|
}
|
|
}
|
|
|
|
apply from: 'publish.gradle'
|