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
Unable to pass java.util.Properties object using new Worker API (Java) in Gradle 5.6 #10342
Comments
Similar to #10341, the solution here is to use either a
Or with 5.6.1, we've fixed the problem with using a straight
You can try out the second option now with the latest release nightly (https://gradle.org/release-nightly/). At least at the moment, we don't plan to support |
verified using The code provided above now results in the following successful build and includes an
Using a straight
|
@ghale - thanks for the quick turnaround on this! I was wondering: Instead of (or in addition to) the straight Properties support, would it make sense for the new Worker API to support a Since Thoughts? |
Yeah, we've discussed a |
@ghale - It's more the later of the two: that it would seem more consistent and less confusing to get things right |
To workaround #10323 I tried an implementation using the new Worker API with Java based class definition. Passing a java.util.Properties object with the new Worker API (Java) fails in Gradle 5.6
E.g. a simple project defined across two files
~/tstProj/buildSrc/src/main/java/MyTask.java:
~/tstProj/build.gradle:
result:
Expected Behavior
BUILD SUCCESSFUL
Current Behavior
BUILD FAILED
Context
I'm attempting to upgrade our large multi-project build from 5.4.1 -> 5.6 and one of our custom build tasks has been using the old Worker API. I attempted a replacement like I've shown in the example code above and encountered this failure.
The upgrade to 5.6 breaks this build task.
Steps to Reproduce
See example above.
Your Environment
OSX
The text was updated successfully, but these errors were encountered: