This repository has been archived by the owner on Aug 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
WORKSPACE.bzlmod
52 lines (35 loc) · 2.16 KB
/
WORKSPACE.bzlmod
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
# This file contains only non-bzlmod dependencies. We want to get rid of it as soon as possible.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# ======================================================================================================================
# io_bazel_rules_scala - required by bazel_sonatype
IO_BAZEL_RULES_SCALA_TAG = "6.5.0"
IO_BAZEL_RULES_SCALA_SHA = "3b00fa0b243b04565abb17d3839a5f4fa6cc2cac571f6db9f83c1982ba1e19e5"
http_archive(
name = "io_bazel_rules_scala",
sha256 = IO_BAZEL_RULES_SCALA_SHA,
strip_prefix = "rules_scala-{}".format(IO_BAZEL_RULES_SCALA_TAG),
url = "https://github.com/bazelbuild/rules_scala/archive/refs/tags/v{}.tar.gz".format(IO_BAZEL_RULES_SCALA_TAG),
)
# ----------------------------------------------------------------------------------------------------------------------
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
scala_config(scala_version = "2.13.12")
# ----------------------------------------------------------------------------------------------------------------------
load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
scala_register_toolchains()
# ----------------------------------------------------------------------------------------------------------------------
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_repositories")
scala_repositories()
# ======================================================================================================================
# bazel_sonatype - for publish
BAZEL_SONATYPE_TAG = "1.1.1"
BAZEL_SONATYPE_SHA = "6d1bc7da15dae958274df944eb46e9757e14187cda6decd66fc1aeeb1ea21758"
http_archive(
name = "bazel_sonatype",
sha256 = BAZEL_SONATYPE_SHA,
strip_prefix = "bazel-sonatype-{}".format(BAZEL_SONATYPE_TAG),
url = "https://github.com/JetBrains/bazel-sonatype/archive/v{}.zip".format(BAZEL_SONATYPE_TAG),
)
# --------------------------------------------------------------------------------------------------------------------
load("@bazel_sonatype//:defs.bzl", "sonatype_dependencies")
sonatype_dependencies()