Kotlin: Drop support for Kotlin 1.x language versions

Kotlin 2.4.0 no longer supports -language-version 1.9 (the last 1.x
version). Clamp get_language_version() in versions.bzl to minimum 2.0
for extractor builds, and update the supported versions documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anders Fugmann
2026-06-08 15:02:03 +02:00
parent 5732a99f9d
commit 557f904e22
3 changed files with 7 additions and 1 deletions

View File

@@ -24,6 +24,8 @@ def version_less(lhs, rhs):
def get_language_version(version):
major, minor, _ = _version_to_tuple(version)
if major == 1:
return "2.0"
return "%s.%s" % (major, minor)
def _basename(path):

View File

@@ -0,0 +1,4 @@
---
category: deprecation
---
* Kotlin versions below 2.0.0 are no longer supported for analysis. The minimum supported version is now Kotlin 2.0.0.