1
1
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
2
2
3
- _COMPOSE_VERSION = "1.2.1"
4
-
5
- _KOTLIN_COMPILER_VERSION = "2.0.0"
6
-
7
- _KOTLIN_COMPILER_SHA = "ef578730976154fd2c5968d75af8c2703b3de84a78dffe913f670326e149da3b"
8
-
9
3
# Setup Kotlin
10
-
11
4
http_archive (
12
5
name = "rules_kotlin" ,
13
6
sha256 = "34e8c0351764b71d78f76c8746e98063979ce08dcf1a91666f3f3bc2949a533d" ,
@@ -16,12 +9,7 @@ http_archive(
16
9
17
10
load ("@rules_kotlin//kotlin:repositories.bzl" , "kotlin_repositories" , "kotlinc_version" , "versions" )
18
11
19
- kotlin_repositories (
20
- compiler_release = kotlinc_version (
21
- release = _KOTLIN_COMPILER_VERSION ,
22
- sha256 = _KOTLIN_COMPILER_SHA ,
23
- ),
24
- )
12
+ kotlin_repositories ()
25
13
26
14
register_toolchains ("//:kotlin_toolchain" )
27
15
@@ -41,15 +29,15 @@ load("@rules_jvm_external//:defs.bzl", "maven_install")
41
29
42
30
maven_install (
43
31
artifacts = [
44
- "org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable:{}" .format (_KOTLIN_COMPILER_VERSION ),
45
- "org.jetbrains.kotlin:kotlin-stdlib:{}" .format (_KOTLIN_COMPILER_VERSION ),
32
+ "org.jetbrains.kotlin:kotlin-compose-compiler-plugin-embeddable:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
33
+ "org.jetbrains.kotlin:kotlin-stdlib:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
46
34
"androidx.core:core-ktx:1.7.0" ,
47
35
"androidx.appcompat:appcompat:1.4.1" ,
48
36
"androidx.activity:activity-compose:1.4.0" ,
49
- "androidx.compose.material:material:{}" .format (_COMPOSE_VERSION ),
50
- "androidx.compose.ui:ui:{}" .format (_COMPOSE_VERSION ),
51
- "androidx.compose.ui:ui-tooling:{}" .format (_COMPOSE_VERSION ),
52
- "androidx.compose.runtime:runtime:{}" .format (_COMPOSE_VERSION ),
37
+ "androidx.compose.material:material:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
38
+ "androidx.compose.ui:ui:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
39
+ "androidx.compose.ui:ui-tooling:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
40
+ "androidx.compose.runtime:runtime:{}" .format (versions . KOTLIN_CURRENT_COMPILER_RELEASE . version ),
53
41
],
54
42
repositories = [
55
43
"https://maven.google.com" ,
0 commit comments