Skip to content

Commit

Permalink
Merge pull request #26524 Clarify configuration factory method releas…
Browse files Browse the repository at this point in the history
…e notes

The existing release notes had some problems.

Fixes #26504

Co-authored-by: Justin Van Dort <jvandort@gradle.com>
  • Loading branch information
bot-gradle and jvandort committed Sep 26, 2023
2 parents 3833711 + 0890e9a commit 21dd48a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions subprojects/docs/src/docs/release/notes.md
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 21dd48a

Please sign in to comment.