| 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" |
| } |
| } |
| |
| apply from: 'publish.gradle' |