mirror of
https://github.com/ysoftdevs/gradle-training.git
synced 2026-03-17 23:04:12 +01:00
36 lines
530 B
Groovy
36 lines
530 B
Groovy
apply plugin: 'java'
|
|
apply plugin: 'pmd'
|
|
apply plugin: 'checkstyle'
|
|
apply plugin: 'findbugs'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testCompile group: 'org.testng', name: 'testng', version: '6.+'
|
|
}
|
|
|
|
test {
|
|
useTestNG()
|
|
}
|
|
|
|
pmdMain {
|
|
ruleSets = [ "basic", "strings" ]
|
|
ignoreFailures = true
|
|
}
|
|
|
|
tasks.withType(Checkstyle) {
|
|
ignoreFailures = true
|
|
}
|
|
|
|
tasks.withType(FindBugs) {
|
|
reports {
|
|
xml.enabled false
|
|
html.enabled true
|
|
}
|
|
ignoreFailures = true
|
|
reportLevel = 'low'
|
|
}
|
|
|