Skip to content

Commit 7849503

Browse files
Merge pull request #20965 from github/andersfugmann/kotlin_2.3.0-beta2
Kotlin: Support Kotlin 2.3.0
2 parents e5f52f0 + ab495fa commit 7849503

File tree

132 files changed

+1117
-1319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1117
-1319
lines changed

MODULE.bazel

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ bazel_dep(name = "bazel_skylib", version = "1.8.1")
2424
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "absl")
2525
bazel_dep(name = "nlohmann_json", version = "3.11.3", repo_name = "json")
2626
bazel_dep(name = "fmt", version = "12.1.0-codeql.1")
27-
bazel_dep(name = "rules_kotlin", version = "2.1.3-codeql.1")
27+
bazel_dep(name = "rules_kotlin", version = "2.2.0-codeql.1")
2828
bazel_dep(name = "gazelle", version = "0.40.0")
2929
bazel_dep(name = "rules_dotnet", version = "0.21.5-codeql.1")
3030
bazel_dep(name = "googletest", version = "1.14.0.bcr.1")
@@ -221,10 +221,6 @@ use_repo(
221221
kotlin_extractor_deps,
222222
"codeql_kotlin_defaults",
223223
"codeql_kotlin_embeddable",
224-
"kotlin-compiler-1.6.0",
225-
"kotlin-compiler-1.6.20",
226-
"kotlin-compiler-1.7.0",
227-
"kotlin-compiler-1.7.20",
228224
"kotlin-compiler-1.8.0",
229225
"kotlin-compiler-1.9.0-Beta",
230226
"kotlin-compiler-1.9.20-Beta",
@@ -234,10 +230,7 @@ use_repo(
234230
"kotlin-compiler-2.1.20-Beta1",
235231
"kotlin-compiler-2.2.0-Beta1",
236232
"kotlin-compiler-2.2.20-Beta2",
237-
"kotlin-compiler-embeddable-1.6.0",
238-
"kotlin-compiler-embeddable-1.6.20",
239-
"kotlin-compiler-embeddable-1.7.0",
240-
"kotlin-compiler-embeddable-1.7.20",
233+
"kotlin-compiler-2.3.0",
241234
"kotlin-compiler-embeddable-1.8.0",
242235
"kotlin-compiler-embeddable-1.9.0-Beta",
243236
"kotlin-compiler-embeddable-1.9.20-Beta",
@@ -247,10 +240,7 @@ use_repo(
247240
"kotlin-compiler-embeddable-2.1.20-Beta1",
248241
"kotlin-compiler-embeddable-2.2.0-Beta1",
249242
"kotlin-compiler-embeddable-2.2.20-Beta2",
250-
"kotlin-stdlib-1.6.0",
251-
"kotlin-stdlib-1.6.20",
252-
"kotlin-stdlib-1.7.0",
253-
"kotlin-stdlib-1.7.20",
243+
"kotlin-compiler-embeddable-2.3.0",
254244
"kotlin-stdlib-1.8.0",
255245
"kotlin-stdlib-1.9.0-Beta",
256246
"kotlin-stdlib-1.9.20-Beta",
@@ -260,6 +250,7 @@ use_repo(
260250
"kotlin-stdlib-2.1.20-Beta1",
261251
"kotlin-stdlib-2.2.0-Beta1",
262252
"kotlin-stdlib-2.2.20-Beta2",
253+
"kotlin-stdlib-2.3.0",
263254
)
264255

265256
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")

docs/codeql/reusables/supported-versions-compilers.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
Java,"Java 7 to 25 [6]_","javac (OpenJDK and Oracle JDK),
2222

2323
Eclipse compiler for Java (ECJ) [7]_",``.java``
24-
Kotlin,"Kotlin 1.6.0 [15]_ to 2.2.2\ *x*","kotlinc",``.kt``
24+
Kotlin,"Kotlin 1.8.0 to 2.3.0\ *x*","kotlinc",``.kt``
2525
JavaScript,ECMAScript 2022 or lower,Not applicable,"``.js``, ``.jsx``, ``.mjs``, ``.es``, ``.es6``, ``.htm``, ``.html``, ``.xhtm``, ``.xhtml``, ``.vue``, ``.hbs``, ``.ejs``, ``.njk``, ``.json``, ``.yaml``, ``.yml``, ``.raml``, ``.xml`` [8]_"
2626
Python [9]_,"2.7, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13",Not applicable,``.py``
2727
Ruby [10]_,"up to 3.3",Not applicable,"``.rb``, ``.erb``, ``.gemspec``, ``Gemfile``"
@@ -45,4 +45,3 @@
4545
.. [12] Support for the analysis of Swift requires macOS.
4646
.. [13] Embedded Swift is not supported.
4747
.. [14] TypeScript analysis is performed by running the JavaScript extractor with TypeScript enabled. This is the default.
48-
.. [15] Support for Kotlin versions 1.6 and 1.7 is deprecated and will be removed in release 2.24.1.

java/kotlin-extractor/BUILD.bazel

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,7 @@ kt_javac_options(
124124
javac_opts = ":javac-options",
125125
kotlinc_opts = ":kotlinc-options-%s" % v,
126126
module_name = "codeql-kotlin-extractor",
127-
# resource_strip_prefix is very nit-picky: the following makes it work from
128-
# `codeql`, `@codeql_kotlin_embeddable` and `semmle-code`
129-
resource_strip_prefix = (
130-
("../%s/" % repo_name() if repo_name() else "") +
131-
("%s/" % package_name() if package_name() else "") +
132-
v
133-
),
127+
resource_strip_prefix = v,
134128
resources = [
135129
":resources-%s" % v,
136130
],

java/kotlin-extractor/deps/kotlin-compiler-1.6.0.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

java/kotlin-extractor/deps/kotlin-compiler-1.6.20.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

java/kotlin-extractor/deps/kotlin-compiler-1.7.0.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

java/kotlin-extractor/deps/kotlin-compiler-1.7.20.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:03e377b3beffa83e26674d0663f746bfb969b197fd8aed9432cfd8abd60db0c5
3+
size 59091069

java/kotlin-extractor/deps/kotlin-compiler-embeddable-1.6.0.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

java/kotlin-extractor/deps/kotlin-compiler-embeddable-1.6.20.jar

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)