Skip to content

Commit e023b57

Browse files
Merge pull request #135 from dropbox/jfein/gradle-plugin
Publish plugin marker artifact
2 parents b6e5b99 + 67610f5 commit e023b57

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,25 @@ In the example below, we're showing a hypothetical project graph and what projec
3939

4040
## Installation
4141

42+
```groovy
43+
// settings.gradle(.kts)
44+
pluginManagement {
45+
repositories {
46+
mavenCentral()
47+
gradlePluginPortal()
48+
}
49+
}
50+
51+
// root build.gradle(.kts)
52+
plugins {
53+
id("com.dropbox.affectedmoduledetector") version "<latest-version>"
54+
}
55+
```
56+
57+
Note that the plugin is currently published to Maven Central, so you need to add it to the repositories list in the `pluginsManagement` block.
58+
59+
Alternatively, it can be consumed via manual buildscript dependency + plugin application.
60+
4261
Apply the project to the root `build.gradle`:
4362
```groovy
4463
buildscript {

affectedmoduledetector/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jacoco {
1616
toolVersion = "0.8.8"
1717
}
1818

19+
gradlePlugin {
20+
plugins {
21+
affectedModuleDetectorPlugin {
22+
id = GROUP
23+
implementationClass = "com.dropbox.affectedmoduledetector.AffectedModuleDetectorPlugin"
24+
}
25+
}
26+
}
27+
1928
dependencies {
2029
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
2130
testImplementation("junit:junit:4.13.2")

affectedmoduledetector/src/main/resources/META-INF/gradle-plugins/com.dropbox.affectedmoduledetector.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)