Is there a trick to getting kapt working with Java...
# kapt
j
Is there a trick to getting kapt working with Java 10+? I have a simple Gradle projects that works with 8 and 9, but not 10 or 11.
Copy code
gradle clean run
> Task :kaptKotlin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kaptKotlin'.
> Could not find tools.jar in system classpath, which is required for kapt to work

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 0s
3 actionable tasks: 3 executed
I think I traced it to a bug in how it’s doing version comparisons. Opened a bug: https://youtrack.jetbrains.com/issue/KT-27188