Open viniciusccarvalho opened 5 years ago
Are you able to build the Gradle example with the Kotlin DSL build file? What version of Gradle are you using with this project? The fileCollection()
method that's getting NoSuchMethodError
was added very recently, in Gradle 5.3 - so I'm guessing you're using an older version?
Yep, it was a 5.3 issue. After upgrading it got partially fixed :)
Because I'm using the groovy version I did not include all the parts of the Kotlin DSL, I believe the new error now is due missing some of the tasks.
Thanks
Any chance you can provide a regular build.gradle (groovy) example? Also I could not figure out how to combine it with the shadow plugin that I usually have for the fatjar creation. It complains about a property from the jar
task : runtimeClassPath
not being found.
Regards
@viniciusccarvalho I had the same issue when I called the kraal plugin before the kotlin jvm plugin, here's what I had (in Kotlin DSL):
Broken:
plugins {
val kotlinVersion by System.getProperties()
val kraalVersion by System.getProperties()
id("com.hpe.kraal") version "$kraalVersion"
kotlin("jvm") version "$kotlinVersion"
}
Fixed:
plugins {
val kotlinVersion by System.getProperties()
val kraalVersion by System.getProperties()
kotlin("jvm") version "$kotlinVersion"
id("com.hpe.kraal") version "$kraalVersion"
}
Hope it helps you.
Hi there, after giving up on trying ktor with graal I found this, and I was so happy to see someone is looking into this.
But I could not manage to get the simplest gradle (groovy not kotlin) project started.
I get the following error when trying to build the project:
And here's my build.gradle file:
Any ideas?