Skip to content

Commit

Permalink
Update docs for strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
rspieldenner committed Feb 2, 2018
1 parent 4e8f221 commit e03cd4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Transitive dependencies interact with the plugin in different ways depending on

#### 5.4.1. `ConflictResolved` Strategy (default)

Consider the following example with dependencies on `commons-configuration` and `commons-logging`. `commons-configuration:1.6` depends on `commons-logging:1.1.1`. In this case, the transitive dependency on `commons-logging` via `commons-configuration` is conflict resolved against the recommended version of 1.0. Normal Gradle conflict resolution selects 1.1.1.
Consider the following example with dependencies on `commons-configuration` and `commons-logging`. `commons-configuration:1.6` depends on `commons-logging:1.1.1`. In this case, the transitive dependency on `commons-logging` via `commons-configuration` is conflict resolved against the recommended version of 1.0 if we have a direct on `commons-logging`. Normal Gradle conflict resolution selects 1.1.1.

```groovy
dependencyRecommendations {
Expand All @@ -262,6 +262,7 @@ dependencyRecommendations {
}
dependencies {
compile 'commons-logging:commons-logging'
compile 'commons-configuration:commons-configuration:1.6'
}
```
Expand Down

0 comments on commit e03cd4d

Please sign in to comment.