Skip to content

Commit

Permalink
Add hint about how to add the plugin via an init script
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenberger authored Apr 16, 2020
1 parent c50fca4 commit a1e4bf3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,28 @@ buildscript {
}
```

### using a Gradle init script ###
You can also transparently add the plugin to every Gradle project that you run via a Gradle init script, e.g. `$HOME/.gradle/init.d/add-versions-plugin.gradle`:
```groovy
initscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.ben-manes:gradle-versions-plugin:+'
}
}
allprojects {
apply plugin: com.github.benmanes.gradle.versions.VersionsPlugin
dependencyUpdates {
// configure the task, for example wrt. resolution strategies
}
}
```

The current version is known to work with Gradle versions up to 5.6.

## Tasks
Expand Down

0 comments on commit a1e4bf3

Please sign in to comment.