I have a Spring Boot + Kotlin + Gradle project and am seeing that the compileKotlin
build step takes somewhere between 2 - 10 seconds without any clear reason for the difference in execution time. To test, I’m changing a single string in the response of a REST endpoint and then running the build again. I’ve tried setting:
tasks.compileKotlin {
kotlinOptions {
freeCompilerArgs += listOf("-version", "-verbose")
verbose = true
}
}
… but I don’t get any output from the compileKotlin
build step.
How can I further investigate what accounts for the difference in execution time?