question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deprecated method used in Gradle plugin (affects Grade 5+)

See original GitHub issue

When 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:

https://github.com/jfrog/build-info/blob/master/build-info-extractor-gradle/src/main/groovy/org/jfrog/gradle/plugin/artifactory/extractor/listener/ProjectsEvaluatedBuildListener.groovy#L105

Please take a look at removing this deprecated usage so we don’t get warnings anymore. Thank you!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
yahavicommented, Nov 24, 2019

@jordanjennings @ryansobol Gradle Artifactory plugin 4.11.0 is released. This release includes this PR that resolves this issue. Feel free to upgrade.

1reaction
ljacometcommented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found