Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

The Provider.forUseAtConfigurationTime method and the org.gradle.util.NameMatcher type has been deprecated. This is scheduled to be removed in Gradle 9.0

Open denzap opened this issue 11 months ago • 2 comments

Gradle: 8.6 AGP: 8.2.2 Talaiot: 2.0.3

After running project build with --scan option (or with ./gradlew --warning-mode all --stacktrace) we got 3 deprecations from gradle:

The Provider.forUseAtConfigurationTime method has been deprecated.	
This is scheduled to be removed in Gradle 9.0.	
Simply remove the call.	
[Documentation](https://docs.gradle.org/8.6/userguide/upgrading_version_7.html#for_use_at_configuration_time_deprecation)	
2 usages	
at org.gradle.api.internal.provider.AbstractMinimalProvider.forUseAtConfigurationTime(AbstractMinimalProvider.java:135)	
at io.github.cdsap.talaiot.metrics.UserMetric$1.invoke(GradleMetrics.kt:126)	
at io.github.cdsap.talaiot.metrics.UserMetric$1.invoke(GradleMetrics.kt:126)	
at io.github.cdsap.talaiot.metrics.base.Metric.get(Metric.kt:15)
...
The Provider.forUseAtConfigurationTime method has been deprecated.	
This is scheduled to be removed in Gradle 9.0.	
Simply remove the call.	
[Documentation](https://docs.gradle.org/8.6/userguide/upgrading_version_7.html#for_use_at_configuration_time_deprecation)	
2 usages
at org.gradle.api.internal.provider.AbstractMinimalProvider.forUseAtConfigurationTime(AbstractMinimalProvider.java:135)	
at io.github.cdsap.talaiot.metrics.LocaleMetric$1.invoke(GradleMetrics.kt:132)	
at io.github.cdsap.talaiot.metrics.LocaleMetric$1.invoke(GradleMetrics.kt:131)
...
The org.gradle.util.NameMatcher type has been deprecated.	
This is scheduled to be removed in Gradle 9.0.	
[Documentation](https://docs.gradle.org/8.6/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations)	
1 usage	
at org.gradle.util.NameMatcher.<clinit>(NameMatcher.java:38)	
at io.github.cdsap.talaiot.util.TaskAbbreviationMatcher.<init>(TaskAbbreviationMatcher.kt:10)	
at io.github.cdsap.talaiot.metrics.GradleMetricsKt.findRequestedTasks(GradleMetrics.kt:140)
...

Expected behavior No warnings

denzap avatar Feb 29 '24 08:02 denzap

Thanks for the report will take a look soon

cdsap avatar Mar 02 '24 02:03 cdsap

added in #395, it will be included in the next release

cdsap avatar Mar 03 '24 01:03 cdsap