Skip to content

Commit c405ee5

Browse files
committed
Use latest kotlin and ksp releases in bootstrap
1 parent b8ef173 commit c405ee5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/starlark/core/repositories/bzlmod_bootstrap.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
load("@released_rules_kotlin//src/main/starlark/core/repositories:initialize.bzl", "kotlin_repositories")
2+
load("//src/main/starlark/core/repositories:versions.bzl", "versions")
23

34
def _rules_kotlin_bootstrap_extensions_impl(_):
45
kotlin_repositories(
56
is_bzlmod = True,
67
compiler_repository_name = "released_com_github_jetbrains_kotlin",
78
ksp_repository_name = "released_com_github_google_ksp",
9+
compiler_release = versions.KOTLIN_CURRENT_COMPILER_RELEASE,
10+
ksp_compiler_release = versions.KSP_CURRENT_COMPILER_PLUGIN_RELEASE,
811
)
912

1013
rules_kotlin_bootstrap_extensions = module_extension(

src/main/starlark/core/repositories/bzlmod_setup.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ def _rules_kotlin_extensions_impl(mctx):
2929
repo = repo,
3030
)
3131
for repo in ["com_github_jetbrains_kotlin", "com_github_google_ksp"]
32+
] + [
33+
# remove js stdlib from toolchain..
34+
"perl -i -pe 's/Label\\(\"//kotlin/compiler:kotlin-stdlib-js\"\\),//g' kotlin/internal/toolchains.bzl",
3235
],
3336
)
3437

0 commit comments

Comments
 (0)