Skip to content

Commit

Permalink
Clarify configuration factory method release notes
Browse files Browse the repository at this point in the history
The existing release notes had some problems.

Fixes #26504
  • Loading branch information
jvandort committed Sep 26, 2023
1 parent 3833711 commit 0890e9a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions subprojects/docs/src/docs/release/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,20 @@ Code which previously used the mutable role properties:
```kotlin
configurations {
create("implementation") {
isCanBeConsumed = false
isCanBeDeclared = true // Defaults to true
isCanBeResolved = false
isCanBeConsumed = false
}
create("runtimeClasspath") {
create("runtimeClasspath") {
isCanBeDeclared = false
isCanBeResolved = true // Defaults to true
isCanBeConsumed = false
isCanBeDeclared = false
extendsFrom(configurations["implementation"])
}
create("runtimeElements") {
isCanBeDeclared = false
isCanBeResolved = false
isCanBeDeclared = false
isCanBeConsumed = true // Defaults to true
extendsFrom(configurations["implementation"])
}
}
Expand All @@ -118,11 +121,11 @@ May now use the factory methods:
```kotlin
configurations {
dependencyScope("implementation")
consumable("apiElements") {
resolvable("runtimeClasspath") {
extendsFrom(configurations["implementation"])
}
resolvable("runtimeClasspath") {
extendsFrom(configurations["apiElements"])
consumable("runtimeElements") {
extendsFrom(configurations["implementation"])
}
}
```
Expand Down

0 comments on commit 0890e9a

Please sign in to comment.