JetBrains / kotless

Kotlin Serverless Framework
Apache License 2.0
1.15k stars 58 forks source link

'kotless' cannot be applied to '(groovy.lang.Closure)' #101

Open itsandreramon opened 3 years ago

itsandreramon commented 3 years ago

After creating a brand new project and wanting to enable GraalVM support I get the following error message:

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method kotless() for arguments [build_dadsq1u39lufnoj95kr6apu66$_run_closure1@685ce999] on root project 'new-func' of type org.gradle.api.Project.
itsandreramon commented 3 years ago

It seems that you have to use Kotlin Gradle Scripts.. Any idea how to change it to Groovy DSL? At least add a note to the docs

TanVD commented 3 years ago

Hm, it is possible, but I would not recommend using Groovy with Kotless :) Is kts no go for you?

itsandreramon commented 3 years ago

Its terrible slow for me :/