Deprecated method used in Gradle plugin (affects Grade 5+)
See original GitHub issueWhen running a Gradle build using the latest Artifactory Gradle plugin (4.9.0) with Gradle 5.0 or greater it prints a warning that deprecated features are being used:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
When I re-run with warnings enabled here’s the warning:
The IvyArtifactRepository.layout(String, Closure) method has been deprecated. This is scheduled to be removed in Gradle 6.0. Please use the IvyArtifactRepository.patternLayout(Action) method instead.
I have tracked down the deprecated usage here:
Please take a look at removing this deprecated usage so we don’t get warnings anymore. Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Upgrading your build from Gradle 5.x to 6.0
The uploadArchives task and the maven plugin are deprecated. Users should migrate to the publishing system of Gradle by using either the maven-publish...
Read more >Upgrading your build from Gradle 4.x to 5.0
The previous step will help you identify potential problems by issuing deprecation warnings when a plugin does try to use a deprecated part...
Read more >Upgrading your build from Gradle 7.x to the latest
The previous step will help you identify potential problems by issuing deprecation warnings when a plugin does try to use a deprecated part...
Read more >Deprecated List (Gradle API 7.6)
This method will be removed in Gradle 8.0. Setting custom build file to select the default project has been deprecated. This method will...
Read more >Gradle 5.0 Release Notes
The FindBugs plugin has been deprecated because the project is unmaintained and does not work with bytecode compiled for Java 9 and above....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jordanjennings @ryansobol Gradle Artifactory plugin 4.11.0 is released. This release includes this PR that resolves this issue. Feel free to upgrade.
FYI, the new API will no longer be incubating in Gradle 6.0, without changes to it. This means it can be safely consumed from Gradle 5.0 onwards. Removal has been postponed to Gradle 7.0 because of its use here and elsewhere.