Move PMD configuration to top level build.gradle file and explicitly specify version.

pull/3/head
Bertrik Sikken 2017-08-31 17:58:12 +02:00
rodzic 94f6d0fc4e
commit f16a42d61d
3 zmienionych plików z 5 dodań i 9 usunięć

Wyświetl plik

@ -1,4 +1,2 @@
apply plugin: 'pmd'
dependencies {
}

Wyświetl plik

@ -8,6 +8,7 @@ apply from:'dependencies.gradle'
subprojects {
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "pmd"
targetCompatibility = 1.8
targetCompatibility = 1.8
@ -16,6 +17,10 @@ subprojects {
mavenCentral()
}
pmd {
toolVersion = "5.8.1"
}
// Standard libraries added to all projects
dependencies {
testCompile libraries.junit

Wyświetl plik

@ -1,5 +1,4 @@
apply plugin: "application"
apply plugin: 'pmd'
mainClassName = 'nl.sikken.bertrik.TtnHabBridge'
@ -11,12 +10,6 @@ dependencies {
compile libraries.jersey_client
}
pmd {
//toolVersion = "5.2.1"
ruleSetFiles = files("pmd-ruleset.xml")
ruleSets = []
}
//Add configuration folder to classpath:
startScripts {
classpath += files('../cfg')