Skip to content
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

ConfigureUtil deprecation reported on Gradle 7.6+ #708

Closed
bwmeier opened this issue Feb 17, 2023 · 5 comments · Fixed by jfrog/artifactory-gradle-plugin#72
Closed

ConfigureUtil deprecation reported on Gradle 7.6+ #708

bwmeier opened this issue Feb 17, 2023 · 5 comments · Fixed by jfrog/artifactory-gradle-plugin#72
Labels
gradle bug Create a report to help us improve

Comments

@bwmeier
Copy link

bwmeier commented Feb 17, 2023

Describe the bug
ConfigureUtil has been deprecated and will be removed in Gradle 9.0. This deprecation warning is reported when running the plugin in Gradle 7.6+. See the groovy doc for ConfigureUtil at https://docs.gradle.org/7.6/javadoc/org/gradle/util/ConfigureUtil.html for the deprecation information and a way to code the plugin to resolve the issue.

To Reproduce
Execute a build containing the plugin in Gradle 7.6 or greater with --warning-mode all.

Expected behavior
The plugin configures and executes without deprecation warnings.

Stack Trace

Configure project :
The org.gradle.util.ConfigureUtil type has been deprecated. This is scheduled to be removed in Gradle 9.0. Consult the upgrading guide for further information: https://docs.gradle.org/7.6/userguide/upgrading_version_7.html#org_gradle_util_reports_deprecations
at org.gradle.util.ConfigureUtil.logDeprecation(ConfigureUtil.java:216)
at org.gradle.util.ConfigureUtil.configureUsing(ConfigureUtil.java:167)
at org.gradle.util.ConfigureUtil$configureUsing.call(Unknown Source)
at org.jfrog.gradle.plugin.artifactory.dsl.ArtifactoryPluginConvention.artifactory(ArtifactoryPluginConvention.groovy:25)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)
at org.gradle.internal.extensibility.DefaultConvention$ExtensionsDynamicObject.tryInvokeMethod(DefaultConvention.java:308)
at org.gradle.internal.extensibility.MixInClosurePropertiesAsMethodsDynamicObject.tryInvokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:36)
at org.gradle.groovy.scripts.BasicScript$ScriptDynamicObject.tryInvokeMethod(BasicScript.java:135)
at org.gradle.groovy.scripts.BasicScript.invokeMethod(BasicScript.java:84)
at build_1ievt9i82cdx3beak2wey5vd8.run(gradle-plugins\build.gradle:115)

Versions

  • Gradle Version 7.6/8.0
  • Gradle Artifactory plugin version: 4.31.3
  • Operating system: Windows 10 / WSL 2
@bwmeier bwmeier added the gradle bug Create a report to help us improve label Feb 17, 2023
@ErwanLeroux
Copy link

Is it really a bug on gradle side ? They deprecated a class and provided a replacement.

@yahavi
Copy link
Member

yahavi commented Sep 29, 2023

Hey @bwmeier & @ErwanLeroux,
Thanks for letting us know about this problem.

We're on it and actively working to fix it. You can check out our progress at this link: jfrog/artifactory-gradle-plugin#72

We'll keep you in the loop with updates.

@yahavi yahavi linked a pull request Sep 29, 2023 that will close this issue
1 task
@ErwanLeroux
Copy link

Thank you for the update !

@yahavi
Copy link
Member

yahavi commented Oct 4, 2023

@ErwanLeroux @bwmeier
Version 5.1.10 of the Gradle Artifactory plugin has just been released. In this release, we've made the transition from Gradle conventions to extensions. If you'd like to, please consider upgrading, and we'd love to hear your feedback on this update.

@ErwanLeroux
Copy link

@yahavi Hello, I don't see deprecation warning anymore when using the 5.1.10 version, thank you !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gradle bug Create a report to help us improve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants