Skip to content

Commit c0a74af

Browse files
committed
feat: configure bazel module with maven dependencies
- Define version constants for all dependencies - Configure maven artifacts using maven.artifact() - Add Spring Boot, Kotlin, Jackson dependencies
1 parent 49bfec4 commit c0a74af

2 files changed

Lines changed: 2901 additions & 0 deletions

File tree

MODULE.bazel

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
module(
2+
name = "entrydsm_example",
3+
version = "0.0.0",
4+
)
5+
6+
bazel_dep(name = "rules_kotlin", version = "2.1.0")
7+
bazel_dep(name = "rules_jvm_external", version = "6.7")
8+
9+
KOTLIN_VERSION = "2.1.0"
10+
SPRING_BOOT_VERSION = "4.0.1"
11+
JACKSON_VERSION = "2.18.2"
12+
JUNIT_VERSION = "4.13.2"
13+
14+
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
15+
16+
maven.install(
17+
name = "maven",
18+
repositories = [
19+
"https://repo1.maven.org/maven2",
20+
],
21+
)
22+
23+
maven.artifact(
24+
artifact = "spring-boot-starter-web",
25+
group = "org.springframework.boot",
26+
version = SPRING_BOOT_VERSION,
27+
)
28+
29+
maven.artifact(
30+
artifact = "spring-boot-starter-actuator",
31+
group = "org.springframework.boot",
32+
version = SPRING_BOOT_VERSION,
33+
)
34+
35+
maven.artifact(
36+
artifact = "spring-boot-starter-test",
37+
group = "org.springframework.boot",
38+
version = SPRING_BOOT_VERSION,
39+
)
40+
41+
maven.artifact(
42+
artifact = "junit",
43+
group = "junit",
44+
version = JUNIT_VERSION,
45+
)
46+
47+
maven.artifact(
48+
artifact = "kotlin-reflect",
49+
group = "org.jetbrains.kotlin",
50+
version = KOTLIN_VERSION,
51+
)
52+
53+
maven.artifact(
54+
artifact = "kotlin-allopen-compiler-plugin",
55+
group = "org.jetbrains.kotlin",
56+
version = KOTLIN_VERSION,
57+
)
58+
59+
maven.artifact(
60+
artifact = "jackson-module-kotlin",
61+
group = "com.fasterxml.jackson.module",
62+
version = JACKSON_VERSION,
63+
)
64+
65+
use_repo(maven, "maven")

0 commit comments

Comments
 (0)