This message was deleted.
# community-support
s
This message was deleted.
e
IDE also jumps fine to it if I command click
v
Can you please provide the full error, and maybe the relevant code it complains about?
e
Oke, found by accident
collection.each looks like static
I changed to the for loop and I was able to call function in class
Sorry, Groovy newcomer
v
No, it is not static. It is just a static method as Groovy magic adds that method to instances of the first parameter type. You can consider it an instance method.
Besides that, I recommend you use Kotlin DSL instead. You immediately get type-safe build scripts, helpful error messages instead of garbage if you mess up the syntax, and amazingly better IDE support if you use a proper IDE like IntelliJ. 😉
e
Thank you! Kotlin would be a great help!
Finally it works here
👌 1