From 19fece7c69291c118d3bf43c8bdb320d37f2f14e Mon Sep 17 00:00:00 2001 From: Daniel Jette Date: Sun, 24 Mar 2024 12:08:07 -0400 Subject: [PATCH] WIP: Unaudited -- define new plugin meta-inf with java-gradle-plugin --- Plugins/Gradle/build.gradle | 10 ++++++++++ .../META-INF/gradle-plugins/dev.testify.properties | 1 - Samples/Flix/FlixLibrary/build.gradle | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) delete mode 100644 Plugins/Gradle/src/main/resources/META-INF/gradle-plugins/dev.testify.properties diff --git a/Plugins/Gradle/build.gradle b/Plugins/Gradle/build.gradle index 61a7b37d..3fcaed0a 100644 --- a/Plugins/Gradle/build.gradle +++ b/Plugins/Gradle/build.gradle @@ -3,6 +3,7 @@ plugins { id 'kotlin' id 'org.jetbrains.dokka' id 'jacoco' + id 'java-gradle-plugin' } ext { @@ -97,6 +98,15 @@ task sourcesJar(type: Jar) { apply from: "../../publish.build.gradle" apply from: '../../ktlint.gradle' +gradlePlugin { + plugins { + simplePlugin { + id = "dev.testify" + implementationClass = "dev.testify.TestifyPlugin" + } + } +} + jacoco { toolVersion = "0.8.8" reportsDirectory = layout.buildDirectory.dir('customJacocoReportDir') diff --git a/Plugins/Gradle/src/main/resources/META-INF/gradle-plugins/dev.testify.properties b/Plugins/Gradle/src/main/resources/META-INF/gradle-plugins/dev.testify.properties deleted file mode 100644 index bc329078..00000000 --- a/Plugins/Gradle/src/main/resources/META-INF/gradle-plugins/dev.testify.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=dev.testify.TestifyPlugin \ No newline at end of file diff --git a/Samples/Flix/FlixLibrary/build.gradle b/Samples/Flix/FlixLibrary/build.gradle index bba33eb3..6a77a6f1 100644 --- a/Samples/Flix/FlixLibrary/build.gradle +++ b/Samples/Flix/FlixLibrary/build.gradle @@ -1,6 +1,6 @@ buildscript { dependencies { - classpath "dev.testify:plugin:${versions.testify}" + classpath "dev.testify:plugin:2.0.0" } ext { versions = [