-
Notifications
You must be signed in to change notification settings - Fork 1
/
MODULE.bazel
86 lines (78 loc) · 3.13 KB
/
MODULE.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
"tower of bazel"
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_ruby", version = "0.12.1")
bazel_dep(name = "rules_apple", version = "3.6.0", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_xcodeproj", version = "2.5.2")
bazel_dep(name = "apple_support", version = "1.15.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_swift", version = "1.18.0", repo_name = "build_bazel_rules_swift")
# Android
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "rules_jvm_external", version = "5.3")
# Rust dependencies
bazel_dep(name = "rules_rust", version = "0.49.1")
ruby = use_extension("@rules_ruby//ruby:extensions.bzl", "ruby")
ruby.toolchain(
name = "ruby",
version_file = "//backend/app:.ruby-version",
)
use_repo(ruby, "ruby")
ruby.bundle_fetch(
name = "bundle",
gemfile = "//backend/app:Gemfile",
gemfile_lock = "//backend/app:Gemfile.lock",
)
use_repo(ruby, "bundle", "ruby_toolchains")
# rules_apple dependencies
bazel_dep(
name = "buildifier_prebuilt",
version = "6.4.0",
dev_dependency = True,
)
non_module_dependencies = use_extension("//frontend/apple/tools:extensions.bzl", "non_module_dependencies")
use_repo(non_module_dependencies, "SwiftLint")
# Rulesets Android / Java / Kotlin
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
"androidx.appcompat:appcompat:1.5.1",
# Jetpack Compose Dependencies
"androidx.activity:activity-compose:1.6.0",
"androidx.compose.material:material:1.2.1",
"androidx.compose.ui:ui:1.2.1",
"androidx.compose.ui:ui-tooling:1.2.1",
"androidx.compose.compiler:compiler:1.3.2",
"androidx.compose.runtime:runtime:1.2.1",
# Dependencies needed to manage version conflicts
"androidx.core:core:1.6.0",
"androidx.core:core-ktx:1.6.0",
"androidx.savedstate:savedstate-ktx:1.2.0",
"androidx.savedstate:savedstate:1.2.0",
"androidx.lifecycle:lifecycle-livedata-core-ktx:2.5.1",
"androidx.lifecycle:lifecycle-livedata-core:2.5.1",
"androidx.lifecycle:lifecycle-livedata:2.5.1",
"androidx.lifecycle:lifecycle-process:2.5.1",
"androidx.lifecycle:lifecycle-runtime-ktx:2.5.1",
"androidx.lifecycle:lifecycle-runtime:2.5.1",
"androidx.lifecycle:lifecycle-service:2.5.1",
"androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1",
"androidx.lifecycle:lifecycle-viewmodel-savedstate:2.5.1",
"androidx.lifecycle:lifecycle-viewmodel:2.5.1",
],
repositories = [
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
use_repo(maven, "maven")
# Rules rust
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
rust.toolchain(edition = "2021")
use_repo(rust, "rust_toolchains")
register_toolchains("@rust_toolchains//:all")
crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate")
crate.from_cargo(
name = "rust_axum_crates",
cargo_lockfile = "//backend/rust-axum:Cargo.lock",
manifests = ["//backend/rust-axum:Cargo.toml"],
)
use_repo(crate, "rust_axum_crates")