From c60ac06d08f482047708faab7ed11daa0b2a3d1e Mon Sep 17 00:00:00 2001 From: Tim Yates Date: Tue, 17 Oct 2023 15:57:22 +0100 Subject: [PATCH] Fix one test and enable Kapt processing on 21 I cannot work out how to launch the kotlin daemon on the toolchain jdk --- gradle.properties | 2 ++ .../groovy/io/micronaut/inject/requires/RequiresSpec.groovy | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 85351e92fe3..f36491c98eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -57,3 +57,5 @@ org.gradle.parallel=true org.gradle.jvmargs=-Xmx1g systemProp.predictiveTestSelection=false predictiveTestSelection=false + +kotlin.daemon.jvmargs= --add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED diff --git a/inject-java/src/test/groovy/io/micronaut/inject/requires/RequiresSpec.groovy b/inject-java/src/test/groovy/io/micronaut/inject/requires/RequiresSpec.groovy index 3e7897a1e8c..32956cbb269 100644 --- a/inject-java/src/test/groovy/io/micronaut/inject/requires/RequiresSpec.groovy +++ b/inject-java/src/test/groovy/io/micronaut/inject/requires/RequiresSpec.groovy @@ -53,7 +53,7 @@ class MyBean { def lines = e.message.readLines().collect { it.trim() } lines[0] == 'No bean of type [test.MyBean] exists. The following matching beans are disabled by bean requirements:' lines[1] == '* Bean of type [test.MyBean] is disabled because:' - lines[2] == '- Java major version [17] must be at least 800' + lines[2] == "- Java major version [${Runtime.version().feature()}] must be at least 800" cleanup: context.close()