We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary: GString substitution is now working. It works fine with Gradle 6.4.1 and earlier. But it break on Gradle 6.5
Steps to Reproduce task bugFoo{ doLast { String appCode = "XX" println (":app-${appCode}:${System.getProperty('os.name', "${appCode}-gunit")}") } }
Expected Behavior Should print ":app-XX:Mac OS X" without any exception
Current Behavior It throws following error """* Where: Build file '/Users/svenkatachalam/gw/lab/gosu-java-single-proj/build.gradle' line: 118
org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String """
The text was updated successfully, but these errors were encountered:
Thanks @sadheeshv - this looks real.
As a workaround, I think you can remove the extra layer of interpolation:
println (":app-${appCode}:${System.getProperty('os.name', "${appCode}-gunit")}")
becomes
println (":app-${appCode}:${System.getProperty('os.name', appCode+"-gunit")}")
Sorry, something went wrong.
Fixed via #13585.
adammurdoch
No branches or pull requests
Summary:
GString substitution is now working. It works fine with Gradle 6.4.1 and earlier. But it break on Gradle 6.5
Steps to Reproduce
task bugFoo{
doLast {
String appCode = "XX"
println (":app-${appCode}:${System.getProperty('os.name', "${appCode}-gunit")}")
}
}
Expected Behavior
Should print ":app-XX:Mac OS X" without any exception
Current Behavior
It throws following error
"""* Where:
Build file '/Users/svenkatachalam/gw/lab/gosu-java-single-proj/build.gradle' line: 118
Execution failed for task ':bugFoo'.
The text was updated successfully, but these errors were encountered: