Skip to content

Commit 274f788

Browse files
1 parent 74c2079 commit 274f788

File tree

5 files changed

+71
-1
lines changed

5 files changed

+71
-1
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
module(
2+
name = "rules_kotlin",
3+
version = "2.1.10",
4+
compatibility_level = 1,
5+
repo_name = "rules_kotlin",
6+
)
7+
8+
bazel_dep(name = "platforms", version = "0.0.11")
9+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
10+
bazel_dep(name = "rules_java", version = "8.9.0")
11+
bazel_dep(name = "rules_android", version = "0.6.4")
12+
bazel_dep(name = "bazel_features", version = "1.25.0")
13+
bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf")
14+
bazel_dep(name = "rules_proto", version = "6.0.2", repo_name = "rules_proto")
15+
bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "py_absl")
16+
bazel_dep(name = "rules_cc", version = "0.0.16")
17+
18+
rules_java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
19+
use_repo(rules_java_toolchains, "remote_java_tools")
20+
21+
rules_kotlin_extensions = use_extension(
22+
"//src/main/starlark/core/repositories:bzlmod_setup.bzl",
23+
"rules_kotlin_extensions",
24+
)
25+
use_repo(
26+
rules_kotlin_extensions,
27+
"com_github_google_ksp",
28+
"com_github_jetbrains_kotlin",
29+
"com_github_pinterest_ktlint",
30+
"kotlinx_serialization_core_jvm",
31+
"kotlinx_serialization_json",
32+
"kotlinx_serialization_json_jvm",
33+
"kotlin_build_tools_impl",
34+
)
35+
36+
register_toolchains("//kotlin/internal:default_toolchain")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,7 +1,7 @@
5+
module(
6+
name = "rules_kotlin",
7+
- version = "1.9.0",
8+
+ version = "2.1.10",
9+
compatibility_level = 1,
10+
repo_name = "rules_kotlin",
11+
)
12+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
matrix:
2+
platform: ["macos", "ubuntu2004"]
3+
bazel: ["7.x", "8.x"]
4+
tasks:
5+
verify_targets:
6+
name: "Verify build targets"
7+
platform: ${{ platform }}
8+
bazel: ${{ bazel }}
9+
build_flags:
10+
- "--enable_bzlmod=true"
11+
build_targets:
12+
- "@rules_kotlin//kotlin/..."
13+
- "@rules_kotlin//src/..."
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"integrity": "sha256-r6lRAk4CL37FZSlfz0y3Rzjvey/5aIIPFGVIjAbs8KA=",
3+
"url": "https://github.com/bazelbuild/rules_kotlin/releases/download/v2.1.10/rules_kotlin-v2.1.10.tar.gz",
4+
"patches": {
5+
"module_dot_bazel_version.patch": "sha256-4SlWuBHRgzt8j5HrlY8j9ySE3faR70NUDnDkOBOFm1Y="
6+
},
7+
"patch_strip": 1
8+
}

modules/rules_kotlin/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@
3636
"2.1.6",
3737
"2.1.7",
3838
"2.1.8",
39-
"2.1.9"
39+
"2.1.9",
40+
"2.1.10"
4041
],
4142
"yanked_versions": {}
4243
}

0 commit comments

Comments
 (0)