Skip to content

Commit

Permalink
Merge pull request #135 from dropbox/jfein/gradle-plugin
Browse files Browse the repository at this point in the history
Publish plugin marker artifact
  • Loading branch information
joshafeinberg authored Apr 14, 2022
2 parents b6e5b99 + 67610f5 commit e023b57
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ In the example below, we're showing a hypothetical project graph and what projec

## Installation

```groovy
// settings.gradle(.kts)
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
// root build.gradle(.kts)
plugins {
id("com.dropbox.affectedmoduledetector") version "<latest-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 {
Expand Down
9 changes: 9 additions & 0 deletions affectedmoduledetector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

This file was deleted.

0 comments on commit e023b57

Please sign in to comment.