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

Fixed Gradle script for dependency downloading with Gradle >9 #4567

Merged
merged 1 commit into from
May 17, 2024

Conversation

max-leuthaeuser
Copy link
Contributor

configurations.default can not be resolved by default. The previous hack with .setCanBeResolved(true) will be deprecated with Gradle 9 and finally removed / disabled in future releases (same for implementation). The proper way to do this is by re-using a resolvable configuration (resolvable by default) in the from clause of the task.

More info: https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs and https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_configurations_graph

`configurations.default` can not be resolved by default.
The previous hack with `.setCanBeResolved(true)` will be deprecated with Gradle 9 and finally removed / disabled in future releases (same for `implementation`). The proper way to do this is by re-using a resolvable configuration (resolvable by default) in the `from` clause of the task.

More info: https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs and https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_configurations_graph
@max-leuthaeuser max-leuthaeuser merged commit 6a42e46 into master May 17, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/gradle9fix branch May 17, 2024 09:11
karan-batavia pushed a commit to Privado-Inc/joern that referenced this pull request Jun 18, 2024
`configurations.default` can not be resolved by default.
The previous hack with `.setCanBeResolved(true)` will be deprecated with Gradle 9 and finally removed / disabled in future releases (same for `implementation`). The proper way to do this is by re-using a resolvable configuration (resolvable by default) in the `from` clause of the task.

More info: https://docs.gradle.org/current/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs and https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_configurations_graph
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 this pull request may close these issues.

2 participants