diff --git a/README.md b/README.md index 7cf50feb9..06f13cadf 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ load("@rules_kotlin//kotlin:core.bzl", "define_kt_toolchain") define_kt_toolchain( name = "kotlin_toolchain", api_version = KOTLIN_LANGUAGE_LEVEL, # "1.1", "1.2", "1.3", "1.4", "1.5" "1.6", "1.7", "1.8", or "1.9" - jvm_target = JAVA_LANGUAGE_LEVEL, # "1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20" or "21" + jvm_target = JAVA_LANGUAGE_LEVEL, # "1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", or "24" language_version = KOTLIN_LANGUAGE_LEVEL, # "1.1", "1.2", "1.3", "1.4", "1.5" "1.6", "1.7", "1.8", or "1.9" ) ``` diff --git a/kotlin/internal/toolchains.bzl b/kotlin/internal/toolchains.bzl index b69a16a1b..baf9abaab 100644 --- a/kotlin/internal/toolchains.bzl +++ b/kotlin/internal/toolchains.bzl @@ -198,6 +198,9 @@ _kt_toolchain = rule( "19", "20", "21", + "22", + "23", + "24", ], ), "experimental_multiplex_workers": attr.bool( diff --git a/src/main/starlark/core/options/opts.kotlinc.bzl b/src/main/starlark/core/options/opts.kotlinc.bzl index 14069701c..073dbf502 100644 --- a/src/main/starlark/core/options/opts.kotlinc.bzl +++ b/src/main/starlark/core/options/opts.kotlinc.bzl @@ -430,7 +430,7 @@ default: 'first-only-warn' in language version 2.2+, 'first-only' in version 2.1 args = dict( default = "", doc = "The target version of the generated JVM bytecode", - values = ["1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17"], + values = ["1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24"], ), type = attr.string, value_to_flag = None, @@ -442,7 +442,7 @@ default: 'first-only-warn' in language version 2.2+, 'first-only' in version 2.1 doc = """Compile against the specified JDK API version, similarly to javac's '-release'. This requires JDK 9 or newer. The supported versions depend on the JDK used; for JDK 17+, the supported versions are 1.8 and 9–21. This also sets the value of '-jvm-target' to be equal to the selected JDK version.""", - values = ["1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17"], + values = ["1.6", "1.8", "9", "10", "11", "12", "13", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24"], ), type = attr.string, value_to_flag = None,