Skip to content
Snippets Groups Projects
Commit c254b3e4 authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Added CPD as quality tool

parent 40593c42
Branches
No related tags found
No related merge requests found
...@@ -13,6 +13,16 @@ repositories { ...@@ -13,6 +13,16 @@ repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
} }
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.aaschmid.gradle.plugins:gradle-cpd-plugin:0.1'
}
}
configurations { configurations {
windowsX86Runtime windowsX86Runtime
windowsX64Runtime windowsX64Runtime
...@@ -53,6 +63,13 @@ pmd { ...@@ -53,6 +63,13 @@ pmd {
ruleSetFiles = files('config/pmd/ruleset.xml') ruleSetFiles = files('config/pmd/ruleset.xml')
} }
apply plugin: 'cpd'
tasks.cpd {
source = sourceSets.main.allJava
reports.xml.destination = file('build/reports/cpd/cpd.xml')
}
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
checkstyle { checkstyle {
ignoreFailures = true ignoreFailures = true
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment