Skip to content

Commit

Permalink
Fix one test and enable Kapt processing on 21
Browse files Browse the repository at this point in the history
I cannot work out how to launch the kotlin daemon on the toolchain jdk
  • Loading branch information
timyates committed Oct 17, 2023
1 parent ca9c786 commit c60ac06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit c60ac06

Please sign in to comment.