Repository navigation
Expand file tree
/
Copy pathMODULE.bazel
More file actions
70 lines (64 loc) · 3 KB
/
Copy pathMODULE.bazel
File metadata and controls
70 lines (64 loc) · 3 KB
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
"""OpenBimRL-Engine-REST — standalone Bazel module (Spring Boot).
Consumes the published Engine JVM package from GitHub Packages:
de.rub.bi.inf.openbimrl.engine:core
Runtime native libs (IfcOpenShell / OCCT) come from the Engine Docker image.
"""
module(
name = "openbimrl_engine_rest",
version = "0.9.3-beta",
)
bazel_dep(name = "rules_kotlin", version = "2.4.10")
bazel_dep(name = "rules_jvm_external", version = "7.1")
bazel_dep(name = "rules_java", version = "9.8.0")
bazel_dep(name = "platforms", version = "1.0.0")
# Same module name/version as OpenBimRL-Engine. When this repo is the root module,
# resolve Engine from GitHub Packages. The Workspace root overrides this path with
# OpenBimRL-Engine/ for local dev (see third_party/engine_maven_shim/).
bazel_dep(name = "openbimrl_engine", version = "2026.10.14")
local_path_override(
module_name = "openbimrl_engine",
path = "third_party/engine_maven_shim",
)
java_toolchains = use_extension("@rules_java//java:extensions.bzl", "toolchains")
use_repo(java_toolchains, "local_jdk")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
maven.install(
artifacts = [
# Spring Boot (versions from BOM unless overridden)
"org.springframework.boot:spring-boot-starter-data-rest:3.3.5",
"org.springframework.boot:spring-boot-starter-web:3.3.5",
"org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0",
"com.fasterxml.jackson.module:jackson-module-kotlin",
"javax.xml.bind:jaxb-api:2.3.1",
"org.glassfish.jaxb:jaxb-runtime:2.3.1",
# Match rules_kotlin 2.4.10 embedded compiler (Kotlin 2.4.10). A mismatched
# allopen plugin JAR crashes kotlinc during //:rest_lib.
"org.jetbrains.kotlin:kotlin-reflect:2.4.10",
"org.jetbrains.kotlin:kotlin-stdlib:2.4.10",
"org.jetbrains.kotlin:kotlin-allopen-compiler-plugin:2.4.10",
"com.github.ajalt.colormath:colormath-jvm:3.6.0",
# Tests — align JUnit Platform with Engine (merged @maven hub).
"org.springframework.boot:spring-boot-starter-test:3.3.5",
"org.junit.jupiter:junit-jupiter-api:5.11.4",
"org.junit.jupiter:junit-jupiter-engine:5.11.4",
"org.junit.platform:junit-platform-commons:1.11.4",
"org.junit.platform:junit-platform-engine:1.11.4",
"org.junit.platform:junit-platform-reporting:1.11.4",
"org.junit.platform:junit-platform-console:1.11.4",
"org.junit.platform:junit-platform-launcher:1.11.4",
],
boms = [
"org.springframework.boot:spring-boot-dependencies:3.3.5",
],
repositories = [
"https://repo1.maven.org/maven2",
"https://maven-central.storage-download.googleapis.com/maven2",
"https://repo.maven.apache.org/maven2",
"https://maven.imagej.net/content/repositories/public/",
"https://jitpack.io",
"https://maven.pkg.github.com/OpenBimRL/OpenBimRL-Engine",
],
resolve_timeout = 1200,
use_credentials_from_home_netrc_file = True,
)
use_repo(maven, "maven")