mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +01:00
30 lines
685 B
Groovy
30 lines
685 B
Groovy
task checkstyleMain(type: Checkstyle) {
|
|
source 'src/main/java'
|
|
include '**/*.java'
|
|
classpath = files()
|
|
reports {
|
|
xml {
|
|
destination file("build/reports/checkstyle/main.xml")
|
|
}
|
|
html {
|
|
destination file("build/reports/checkstyle/main.html")
|
|
}
|
|
}
|
|
check.dependsOn it
|
|
}
|
|
|
|
task checkstyleTest(type: Checkstyle) {
|
|
source 'src/test/java'
|
|
include '**/*.java'
|
|
classpath = files()
|
|
reports {
|
|
xml {
|
|
destination file("build/reports/checkstyle/test.xml")
|
|
}
|
|
html {
|
|
destination file("build/reports/checkstyle/test.html")
|
|
}
|
|
}
|
|
check.dependsOn it
|
|
}
|