From 23b927e0a26455d9dd6073d2f1635bb80da9dc9a Mon Sep 17 00:00:00 2001 From: Josh Feinberg Date: Wed, 13 Apr 2022 16:22:42 -0500 Subject: [PATCH 1/3] Publish plugin marker artifact --- affectedmoduledetector/build.gradle | 9 +++++++++ .../com.dropbox.affectedmoduledetector.properties | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 affectedmoduledetector/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedmoduledetector.properties diff --git a/affectedmoduledetector/build.gradle b/affectedmoduledetector/build.gradle index 4c36dc48..ad872803 100644 --- a/affectedmoduledetector/build.gradle +++ b/affectedmoduledetector/build.gradle @@ -16,6 +16,15 @@ jacoco { toolVersion = "0.8.8" } +gradlePlugin { + plugins { + affectedModuleDetectorPlugin { + id = GROUP + implementationClass = "com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin" + } + } +} + dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" testImplementation("junit:junit:4.13.2") diff --git a/affectedmoduledetector/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedmoduledetector.properties b/affectedmoduledetector/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedmoduledetector.properties deleted file mode 100644 index f28b2428..00000000 --- a/affectedmoduledetector/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedmoduledetector.properties +++ /dev/null @@ -1 +0,0 @@ -implementation-class=com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin \ No newline at end of file From 2e7b97a4707c4a3fe1f93e9c3e75f914c99179f6 Mon Sep 17 00:00:00 2001 From: Josh Feinberg Date: Wed, 13 Apr 2022 16:44:34 -0500 Subject: [PATCH 2/3] Update documentation --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 295573a6..59cf809b 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,24 @@ In the example below, we're showing a hypothetical project graph and what projec ## Installation +```groovy +// settings.gradle(.kts) +pluginManagement { + repositories { + mavenCentral() + gradlePluginPortal() + } +} + +plugins { + id("com.dropbox.affectedmoduledetector") version "" +} +``` + +Note that the plugin is currently published to Maven Central, so you need to add it to the repositories list in the `pluginsManagement` block. + +Alternatively, it can be consumed via manual buildscript dependency + plugin application. + Apply the project to the root `build.gradle`: ```groovy buildscript { From 67610f55e44043fd6c93a982cf05a0d9897e76ff Mon Sep 17 00:00:00 2001 From: Josh Feinberg Date: Wed, 13 Apr 2022 16:54:46 -0500 Subject: [PATCH 3/3] Update documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 59cf809b..77f5585f 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ pluginManagement { } } +// root build.gradle(.kts) plugins { id("com.dropbox.affectedmoduledetector") version "" }