mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
* Move examples to allwpilib * Add checkstyle config to examples project * Ran wpiformat * Run checkstyle on examples * Change maximum line length for examples to 80 chars This number was chosen based on testing of the number of characters shown by default in Eclipse done by @Kevin-OConnor: 51 chars by default on an E09 @ 1024x600 (which has the welcome window open on the right), 71 with welcome closed, 95 with the right-hand outline pane closed * Add mavenCentral repository * Rename subproject & error on deprecated API use * Remove deprecated API usage
29 lines
716 B
Groovy
29 lines
716 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"
|
|
}
|
|
}
|