Could not find method methodName() for arguments [] on task ':subproject:taskName'


(Jörg Schömer) #1

I’ve moved to gradle 1.12-rc-2 from gradle 1.11 because of my IDE. On 1.11 the method “methodName” defined in rootProject is available in every subproject, with 1.12-rc-2 the build terminates with an error: > Could not find method methodName() for arguments [] on task ‘:subproject:runnableJar’.


(Peter Niederwieser) #2

We’d need more information to look into this. Can you provide a reproducible example?


(Jörg Schömer) #3

I’ve tried to set up a small build to reproduce this behavior, unfortunately without success. Good for you, bad for me.

The build process that generates the error, I can’t hand over.

Is there a way to provide you with more debug information from my build? Like a trace or something similar?


(Peter Niederwieser) #4

Perhaps post the stack trace (’–full-stacktrace’) as a GitHub Gist. Note that a clean build is required whenever you switch between Gradle versions (otherwise strange things can happen). You could also try with the latest nightly build.