You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Migrating to Spock 2, some errors happen when using parameter named build #1200
When migrating to Spock 2, some tests previously green started failing. As crazy as it sounds, it turned out that renaming the parameters named build holding a Mock to some other name made the tests green again.
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 13.0.2 (Oracle Corporation 13.0.2+8)
OS: Mac OS X 10.15.6 x86_64
Java/JDK
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
Btw. your project does not build @etiennestuder, it complains that it cannot run mvnw.
I guess your build is optimized for Linux and I happend to try it on Windows.
@Vampire It's a Gradle build. You can run it with ./gradlew.bat on Windows.
I know the one best build tool in the world and I'm even a contributor. ;-)
Nevertheless the Maven part of the build where the Gradle part tries to trigger the Maven wrapper is failing as described.
This didn't hinder me to test, just wanted you to know. :-)
Nevertheless the Maven part of the build where the Gradle part tries to trigger the Maven wrapper is failing as described.
This didn't hinder me to test, just wanted you to know. :-)
Activity
Vampire commentedon Jul 22, 2020
Hm, very interesting.
I have no idea why this happens, but it can be boiled down to.
where
build.toString() >> nullgets rewritten toinstead of
Btw. your project does not build @etiennestuder, it complains that it cannot run
mvnw.I guess your build is optimized for Linux and I happend to try it on Windows.
Vampire commentedon Jul 22, 2020
And during debugging it seems to create the correct code. :-/
etiennestuder commentedon Jul 23, 2020
@Vampire It's a Gradle build. You can run it with ./gradlew.bat on Windows.
etiennestuder commentedon Jul 23, 2020
@Vampire Thanks for having looked into it. I hope you find
the cause anda fix for it.Vampire commentedon Jul 23, 2020
I know the one best build tool in the world and I'm even a contributor. ;-)
Nevertheless the Maven part of the build where the Gradle part tries to trigger the Maven wrapper is failing as described.
This didn't hinder me to test, just wanted you to know. :-)
etiennestuder commentedon Jul 23, 2020
My apologies, I finally got what you mean. This is what you were referring to:
https://github.com/etiennestuder/teamcity-build-scan-plugin/blob/ad83e74cf23b6a6736fb3eff73874fbf6d318117/agent/service-message-maven-extension/build.gradle#L10
I fixed it:
etiennestuder/teamcity-build-scan-plugin@ceec051
Thanks for letting me know.
Vampire commentedon Jul 23, 2020
Regarding the reported problem, it is a Groovy bug: https://issues.apache.org/jira/browse/GROOVY-9651.
But we can work-around the problem.
etiennestuder commentedon Jul 23, 2020
Cool. Thanks @Vampire
Fix name clashes where variables that are named like method calls des…
Fix name clashes where variables that are named like method calls des…
etiennestuder commentedon Aug 12, 2020
Thanks, @leonard84 .