2024-04-19 15:39:47 +03:00
|
|
|
"enso-org/enso"
|
|
|
|
|
2024-04-23 18:52:41 +03:00
|
|
|
bazel_dep(name = "aspect_rules_js", version = "1.41.2")
|
2024-04-19 15:39:47 +03:00
|
|
|
|
|
|
|
####### Node.js version #########
|
2024-04-23 18:52:41 +03:00
|
|
|
bazel_dep(name = "rules_nodejs", version = "6.1.0")
|
2024-04-19 15:39:47 +03:00
|
|
|
node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")
|
|
|
|
node.toolchain(node_version = "20.11.1")
|
|
|
|
#################################
|
|
|
|
|
|
|
|
npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm", dev_dependency = True)
|
|
|
|
npm.npm_translate_lock(
|
|
|
|
name = "npm",
|
|
|
|
pnpm_lock = "//:pnpm-lock.yaml",
|
|
|
|
verify_node_modules_ignored = "//:.bazelignore",
|
|
|
|
)
|
|
|
|
use_repo(npm, "npm")
|
2024-04-23 18:52:41 +03:00
|
|
|
|
|
|
|
bazel_dep(name = "aspect_rules_ts", version = "2.2.0")
|
|
|
|
|
|
|
|
rules_ts_ext = use_extension(
|
|
|
|
"@aspect_rules_ts//ts:extensions.bzl",
|
|
|
|
"ext",
|
|
|
|
dev_dependency = True,
|
|
|
|
)
|
|
|
|
|
|
|
|
rules_ts_ext.deps()
|
|
|
|
|
2024-04-24 12:17:09 +03:00
|
|
|
use_repo(rules_ts_ext, "npm_typescript")
|
|
|
|
|
|
|
|
## JVM
|
|
|
|
bazel_dep(name = "rules_java", version = "7.5.0")
|
|
|
|
bazel_dep(name = "rules_graalvm", version = "0.11.1") ## upgrade to 0.11.2 once available in bazel central
|
|
|
|
|
|
|
|
gvm = use_extension("@rules_graalvm//:extensions.bzl", "graalvm")
|
|
|
|
|
|
|
|
gvm.graalvm(
|
|
|
|
name = "graalvm",
|
|
|
|
version = "23.1.0", # gvm sdk version format like `24.x.x` also supported
|
|
|
|
distribution = "ce", # `oracle`, `ce`, or `community`
|
|
|
|
java_version = "21", # `17`, `20`, `21`, or `22` as supported by the version provided
|
|
|
|
)
|
|
|
|
use_repo(gvm, "graalvm")
|
|
|
|
register_toolchains("@graalvm//:jvm")
|
|
|
|
register_toolchains("@graalvm//:sdk")
|
|
|
|
register_toolchains("@graalvm//:toolchain")
|
|
|
|
|
|
|
|
bazel_dep(name = "rules_jvm_external", version = "6.0")
|
|
|
|
|
|
|
|
scalaLoggingVersion = "3.9.4"
|
|
|
|
scalatestVersion = "3.3.0-SNAP4"
|
|
|
|
catsVersion = "2.9.0"
|
|
|
|
|
|
|
|
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
|
|
|
|
## After updating a list of artifacts run
|
|
|
|
## > bazel run @unpinned_maven//:pin
|
|
|
|
maven.install(
|
|
|
|
artifacts = [
|
|
|
|
"com.typesafe.scala-logging:scala-logging_2.13:3.9.4",
|
|
|
|
"org.scalatest:scalatest_2.13:3.3.0-SNAP4",
|
|
|
|
"org.typelevel:cats-core_2.13:2.9.0",
|
|
|
|
"io.circe:circe-core_2.13:0.14.5",
|
|
|
|
"io.circe:circe-generic_2.13:0.14.5",
|
|
|
|
"io.circe:circe-parser_2.13:0.14.5"
|
|
|
|
],
|
|
|
|
fail_if_repin_required = True,
|
|
|
|
lock_file = "//:maven_install.json",
|
|
|
|
repositories = [
|
|
|
|
"https://maven.google.com",
|
|
|
|
"https://repo.maven.apache.org/maven2",
|
|
|
|
"https://repo1.maven.org/maven2",
|
|
|
|
"https://jitpack.io",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
use_repo(
|
|
|
|
maven,
|
|
|
|
"maven",
|
|
|
|
"unpinned_maven",
|
|
|
|
)
|