Skip to content

Commit

Permalink
Add filter configurations to README
Browse files Browse the repository at this point in the history
  • Loading branch information
bert@transtrend.com committed Jun 9, 2023
1 parent 760778c commit dd2b51f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,19 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates").configure {

Note: Do use the `plugins { .. }` syntax if you use the Kotlin DSL.

#### Configuration filter
You can change which dependency configurations the plugin checks for updates like this:

```groovy
// https://github.com/ben-manes/gradle-versions-plugin
tasks.named("dependencyUpdates").configure {
filterConfigurations {
it.name.equals("runtimeClasspath") || it.name.equals("compileClasspath")
}
}
```


#### Try out the samples

Have a look at [`examples/groovy`](https://github.com/ben-manes/gradle-versions-plugin/tree/master/examples/groovy) and [`examples/kotlin`](https://github.com/ben-manes/gradle-versions-plugin/tree/master/examples/kotlin)
Expand Down

0 comments on commit dd2b51f

Please sign in to comment.