-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Obscure error when using platform()
to align dependencies with a version catalog dependency
#24299
Comments
Thank you for providing a valid reproducer. The issue is in the backlog of the relevant team and is prioritized by them. |
Another workaround it to use |
Also experienced this issue with a |
The work-around mentioned by @grossws also works fine in 8.1.1. fun JvmComponentDependencies.vcPlatform(dependency: Provider<out Dependency>) =
platform(dependency.map { "${it.group}:${it.name}:${it.version}" }.get()) and then |
And here the actual stacktrace of the error happening with 8.1.1:
|
This is fixed in 8.4. With 8.3 it still happened. |
Expected Behavior
I can set a platform dependency to align versions in a JVM test suite using a version catalog dependency.
Current Behavior
I get an obscure error. It doesn't point to where the problem is, which is not user friendly.
Context
Steps to Reproduce
gradle-test-suite-platform.zip
Your Environment
Gradle 8.0.2
The text was updated successfully, but these errors were encountered: