Skip to content

Gradle plugin's build info support produces a deprecation warning when using Gradle 8.4-rc-1 #37493

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wilkinsona opened this issue Sep 20, 2023 · 1 comment
Assignees
Labels
type: bug A general bug
Milestone

Comments

@wilkinsona
Copy link
Member

The Provider.forUseAtConfigurationTime method has been deprecated. This is scheduled to be removed in Gradle 9.0. Simply remove the call. Consult the upgrading guide for further information: https://docs.gradle.org/8.4-rc-1/userguide/upgrading_version_7.html#for_use_at_configuration_time_deprecation

From the upgrading guide:

Starting with version 7.4 Gradle will implicitly treat an external value used at configuration time as a configuration cache input.

We support Gradle 7.3 and earlier so we cannot "simply remove the call". Instead, we'll have to call it conditionally, depending on the version of Gradle that's in use.

@wilkinsona wilkinsona added the type: bug A general bug label Sep 20, 2023
@wilkinsona wilkinsona added this to the 2.7.x milestone Sep 20, 2023
@wilkinsona wilkinsona self-assigned this Sep 20, 2023
@wilkinsona
Copy link
Member Author

When merging forwards to 3.0.x we can remove the call as the minimum supported version of Gradle in that branch is 7.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

1 participant