mirror of
https://github.com/github/codeql.git
synced 2026-06-09 15:04:14 +02:00
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:
@@ -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):
|
||||
|
||||
4
java/ql/lib/change-notes/2026-06-08-kotlin-drop-1x.md
Normal file
4
java/ql/lib/change-notes/2026-06-08-kotlin-drop-1x.md
Normal 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.
|
||||
Reference in New Issue
Block a user