From 6479685bdcfdde2bfba11578b1d42a812d97721e Mon Sep 17 00:00:00 2001 From: Lars Grefer Date: Fri, 10 May 2019 00:23:46 +0200 Subject: [PATCH] Use the java-gradle-plugin to generate the plugin descriptors --- build.gradle | 13 ++++++++++++- .../META-INF/gradle-plugins/cpd.properties | 1 - .../gradle-plugins/de.aaschmid.cpd.properties | 1 - 3 files changed, 12 insertions(+), 3 deletions(-) delete mode 100644 src/main/resources/META-INF/gradle-plugins/cpd.properties delete mode 100644 src/main/resources/META-INF/gradle-plugins/de.aaschmid.cpd.properties diff --git a/build.gradle b/build.gradle index 348fa69..5d477c8 100644 --- a/build.gradle +++ b/build.gradle @@ -133,6 +133,17 @@ check.dependsOn integTest gradlePlugin { testSourceSets sourceSets.integTest + + plugins { + cpd { + id = "de.aaschmid.cpd" + implementationClass = "de.aaschmid.gradle.plugins.cpd.CpdPlugin" + } + legacyCpd { + id = "cpd" + implementationClass = "de.aaschmid.gradle.plugins.cpd.CpdPlugin" + } + } } idea { @@ -246,7 +257,7 @@ pluginBundle { tags = [ 'duplicates', 'cpd', 'copy-paste-detection' ] plugins { - cpdPlugin { + cpd { id = 'de.aaschmid.cpd' displayName = 'Gradle CPD plugin' } diff --git a/src/main/resources/META-INF/gradle-plugins/cpd.properties b/src/main/resources/META-INF/gradle-plugins/cpd.properties deleted file mode 100644 index 9383f32..0000000 --- a/src/main/resources/META-INF/gradle-plugins/cpd.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=de.aaschmid.gradle.plugins.cpd.CpdPlugin diff --git a/src/main/resources/META-INF/gradle-plugins/de.aaschmid.cpd.properties b/src/main/resources/META-INF/gradle-plugins/de.aaschmid.cpd.properties deleted file mode 100644 index 9383f32..0000000 --- a/src/main/resources/META-INF/gradle-plugins/de.aaschmid.cpd.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=de.aaschmid.gradle.plugins.cpd.CpdPlugin