Closed Applequist closed 4 years ago
I've tried using this java version from SDKMan: sdk use java 11.0.5.hs-adpt
and I can run both ./gradlew test
and ./gradlew run
and it works as expected.
Can you please clone the guide and try it again?
I had the same issue with 11.0.4, can confirm that it works after installing the 11.0.5 sdk
I'm seeing this happen with 11.0.5, but it's sporatic.
If I do a clean build
, it goes away, if I do a build again later, it shows up. Just have to change something, and it then immediately it dies.
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)
https://kotlinlang.org/docs/reference/kapt.html#gradle-build-cache-support-since-1220
I can remove the problem by disabling the kapt build cache. I think that's the problem.
I indeed still had the problem on 11.0.5
Hi, I have updated the guide to Micronaut 2.0.
I can run with JDK 11. Please reopen if you are still able to reproduce the issue.
% java --version
openjdk 11.0.7 2020-04-14 LTS
OpenJDK Runtime Environment Corretto-11.0.7.10.1 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM Corretto-11.0.7.10.1 (build 11.0.7+10-LTS, mixed mode)
sdelamo@Sergios-iMac-Pro complete % ./gradlew run
> Task :complete:run
07:23:20.189 [main] INFO io.micronaut.runtime.Micronaut - Startup completed in 794ms. Server Running: http://localhost:8080
I've been following the Micronaut tutorial on https://guides.micronaut.io/creating-your-first-micronaut-app-kotlin/guide/index.html and when running the app I get the following error:
FAILURE: Build failed with an exception.
I'm using kotlin 1.3.50 with JRE 11.0.3+7-LTS
Thanks for your help