Repository navigation
Commit 6a82d12
authored
Remove deprecated Configuration.setVisible(boolean) call (Gradle 9.8) (#271)
* Remove deprecated Configuration.setVisible(boolean) call
The per-project producer configuration called `isVisible = false`, which
Gradle deprecated in 9.8.0-milestone-2 (scheduled for removal in Gradle 11).
Builds that fail on deprecation warnings (`org.gradle.warning.mode=fail`) break
as soon as a project applying the nmcp plugin is configured.
The `visible` property no longer has any meaningful effect on the build, and
the internal `nmcpProducer` configuration is already kept out of resolution via
`canBeConsumed=true`/`canBeResolved=false`, so the call can be removed without
changing behaviour on any supported Gradle version.
* Guard Configuration.setVisible(boolean) behind a Gradle < 9.8 check
Per review feedback: keep the `isVisible = false` behaviour on Gradle
versions where it still matters (so publications aren't published as part of
`assemble`), and only skip it on Gradle 9.8+ where the property is deprecated
and inert. This avoids the deprecation warning on 9.8+ while preserving the
original behaviour on older Gradle versions.1 parent 342716d commit 6a82d12
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
0 commit comments