Skip to content

Commit

Permalink
upgrade gradle-cpd-plugin to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
aaschmid committed Jul 4, 2019
1 parent c0573f6 commit bd76f3b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {

id "com.github.spotbugs" version "1.6.5" apply false
id "de.aaschmid.cpd" version "1.3"
id "de.aaschmid.cpd" version "2.0"

id "biz.aQute.bnd.builder" version "4.1.0" apply false

Expand Down Expand Up @@ -308,11 +308,8 @@ subprojects {
}

cpd {
if (System.getProperty("java.version")[0..2] in [ "1.6" ]) { // PMD / CPD v5.4.0 does not work with Java < v1.7 :-(
toolVersion = "5.3.7"
} else {
toolVersion = "6.2.0"
}
// Use Java 8 and later to execute cpd successfully
toolVersion = "6.13.0"
}

cpdCheck {
Expand Down

0 comments on commit bd76f3b

Please sign in to comment.