diff --git a/packages/java/gradle-plugin/build.gradle b/packages/java/gradle-plugin/build.gradle index 8c6959581a..47a214a6e7 100644 --- a/packages/java/gradle-plugin/build.gradle +++ b/packages/java/gradle-plugin/build.gradle @@ -204,6 +204,8 @@ kotlin { compileKotlin { kotlinOptions { jvmTarget = "17" + // Hilla relies on annotations from JVM bytecode, see: https://github.com/vaadin/hilla/issues/2343 + freeCompilerArgs = ["-Xjsr305=strict", "-Xemit-jvm-type-annotations"] } }