From 312f4e645bb1d2a3ecdf0b4a2fbb5aa963a977c0 Mon Sep 17 00:00:00 2001 From: Lars Grefer Date: Fri, 23 Aug 2019 01:47:11 +0200 Subject: [PATCH] Use the 'java-gradle-plugin' plugin for the plugin --- buildSrc/build.gradle | 11 ++++++++--- .../META-INF/gradle-plugins/trang.properties | 1 - 2 files changed, 8 insertions(+), 4 deletions(-) delete mode 100644 buildSrc/src/main/resources/META-INF/gradle-plugins/trang.properties diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index a6a1444154..907d3d2529 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -1,11 +1,16 @@ -apply plugin: 'java' +apply plugin: "java-gradle-plugin" repositories { mavenCentral() } -dependencies { - compile gradleApi() +gradlePlugin { + plugins { + trang { + id = "trang" + implementationClass = "trang.TrangPlugin" + } + } } // GAE diff --git a/buildSrc/src/main/resources/META-INF/gradle-plugins/trang.properties b/buildSrc/src/main/resources/META-INF/gradle-plugins/trang.properties deleted file mode 100644 index 4ef5e2b39e..0000000000 --- a/buildSrc/src/main/resources/META-INF/gradle-plugins/trang.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=trang.TrangPlugin \ No newline at end of file