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

Gradle 7 compatibility #700

Closed
dweiss opened this issue Apr 16, 2021 · 2 comments · Fixed by #721
Closed

Gradle 7 compatibility #700

dweiss opened this issue Apr 16, 2021 · 2 comments · Fixed by #721

Comments

@dweiss
Copy link

dweiss commented Apr 16, 2021

Is there any time frame to support gradle 7? I've tried to upgrade but looks like things break on removed legacy configurations.

private void fixLegacyResolvableJavaConfigurations(Project project, Configuration unifiedClasspath) {
Stream.of(
JavaPlugin.COMPILE_CONFIGURATION_NAME,
JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME,
JavaPlugin.RUNTIME_CONFIGURATION_NAME)
.map(project.getConfigurations()::named)
.forEach(confProvider -> confProvider.configure(conf -> {
injectVersions(
conf,
(group, name) ->
GetVersionPlugin.getOptionalVersion(project, group, name, unifiedClasspath));
}));
}

* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin class 'com.palantir.gradle.versions.FixLegacyJavaConfigurationsPlugin'.
   > Configuration with name 'compile' not found.
@fawind
Copy link
Contributor

fawind commented Jul 14, 2021

Sorry for the delay here! We just started working on Gradle 7 compatibility but the latest release (2.0.0) should be compatible now. Let us know if you run into further issues!

@dweiss
Copy link
Author

dweiss commented Jul 15, 2021

Thank you! I'll be looking into upgrading various projects soon, this will be very useful!

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.

2 participants