Skip to content

Stop calling deprecated Configuration.setVisible from Gradle 9.1.0 - #3053

Open
Goooler wants to merge 1 commit into
mainfrom
g/20260911/stop-set-visible
Open

Stop calling deprecated Configuration.setVisible from Gradle 9.1.0#3053
Goooler wants to merge 1 commit into
mainfrom
g/20260911/stop-set-visible

Conversation

@Goooler

@Goooler Goooler commented Sep 11, 2026

Copy link
Copy Markdown
Member
The Configuration.setVisible(boolean) method has been deprecated. This is scheduled to be removed in Gradle 11. Consult the upgrading guide for further information: https://docs.gradle.org/9.8.0-rc-1/userguide/upgrading_version_9.html#deprecate-visible-property
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.setVisible(DefaultConfiguration.java:376)
	at org.gradle.api.internal.artifacts.configurations.DefaultLegacyConfiguration_Decorated.setVisible(Unknown Source)

@Goooler
Goooler force-pushed the g/20260911/stop-set-visible branch from f30c491 to 1d69879 Compare September 11, 2026 06:59
@Goooler Goooler changed the title Stop calling Configuration.setVisible from Gradle 9.1.0 Stop calling deprecated Configuration.setVisible from Gradle 9.1.0 Sep 11, 2026
```
The Configuration.setVisible(boolean) method has been deprecated. This is scheduled to be removed in Gradle 11. Consult the upgrading guide for further information: https://docs.gradle.org/9.8.0-rc-1/userguide/upgrading_version_9.html#deprecate-visible-property
	at org.gradle.api.internal.artifacts.configurations.DefaultConfiguration.setVisible(DefaultConfiguration.java:376)
	at org.gradle.api.internal.artifacts.configurations.DefaultLegacyConfiguration_Decorated.setVisible(Unknown Source)
```
@Goooler
Goooler force-pushed the g/20260911/stop-set-visible branch from 1d69879 to 17c73e2 Compare September 11, 2026 07:00
Comment on lines +137 to +140
if (GradleVersion.current().compareTo(GradleVersion.version("9.1.0")) < 0) {
// Deprecated from 9.1.0
config.setVisible(false);
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: Apparently, this method has no side effect since 9.0.0, so maybe the range could start from 9.0.0

https://docs.gradle.org/current/userguide/upgrading_version_9.html#deprecate-visible-property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants