-
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
BuildServiceParameters fails with convention plugins #27099
Comments
Thank you for providing a valid report. The issue is in the backlog of the relevant team and is prioritized by them. |
Is it good to access all properties at least once as a workaround for now? |
Fix for Issue #3933 Applyed workaround described in Gradle Issue: gradle/gradle#27099 We just need to call all functions (getters in our case) in our interface based on BuildServiceParameters at least once
FWIW, this impacts the
Exception is the same as in the buildscan from the description. Workaround was to move the application of the plugin with build services out of the convention plugin down on the using projects instead. The precompiled plugin then reacts with |
Since Kotlin 2.0 compose the plugin from JetBrains has been used for Android as well. |
@dima-avdeev-jb thank you for the accurate reproducer, it has just enough pieces to trigger the issue. With it, getting to the root cause was almost a walk in the park. |
Current Behavior
BuildServiceParameters fails with convention plugins
org.gradle.internal.snapshot.impl.IsolationException: Could not isolate value org.example.MyParameters_Decorated@33db25b2 of type MyParameters
where MyParameters - it is my own interface
Expected Behavior
Better to support usage of BuildServiceParameters without workaround
Context (optional)
I found workaround to call all paratemers in my custom BuildServiceParameters at least once.
All described in reproducer repository.
Maybe where are some documentation that describe this behavior, or maybe related Issue already created?
Steps to Reproduce
Made reproducer here:
https://github.com/dima-avdeev-jb/gradle-build-service-parameters-issue
Gradle version
8.4
Build scan URL (optional)
https://gradle.com/s/voqsbvcxhvfcc
Your Environment (optional)
The text was updated successfully, but these errors were encountered: