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

Support Gradle 6.2 (due to changes in org.gradle.util.SingleMessageLogger) #377

Closed
bjornvester opened this issue Feb 18, 2020 · 1 comment · Fixed by #378
Closed

Support Gradle 6.2 (due to changes in org.gradle.util.SingleMessageLogger) #377

bjornvester opened this issue Feb 18, 2020 · 1 comment · Fixed by #378

Comments

@bjornvester
Copy link

When running on Gradle 6.2, the plugin fails with:

Caused by: groovy.lang.MissingMethodException: No signature of method: static org.gradle.util.SingleMessageLogger.nagUserWith() is applicable for argument types: (String, String, String, null) values: [dependencyUpdates.resolutionSt
rategy, , Remove the assignment operator, '=', when setting this task property, ...]
        at com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask.dependencyUpdates(DependencyUpdatesTask.groovy:81)
[...]

The Gradle class SingleMessageLogger has been rewritten, and should probably not be used anymore (it looks like it is only there for backwards compatibility with the Nebula plugin).

The only replacement is org.gradle.internal.deprecation.DeprecationLogger, which, being an internal class, is not great either.

@bjornvester
Copy link
Author

bjornvester commented Feb 18, 2020

I just realized that the failure for me was triggered by a deprecated way of configuring resolutionStrategy and the issue can be worked around by doing it the new way. But the plugin should still not fail like this.

Reproducer:

dependencyUpdates {
    resolutionStrategy = { }
}

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

Successfully merging a pull request may close this issue.

1 participant