-
Notifications
You must be signed in to change notification settings - Fork 1
/
workspace.bzl
33 lines (30 loc) · 1.31 KB
/
workspace.bzl
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
"""
Load 3rd party maven dependencies
"""
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_jvm_external//:specs.bzl", "maven")
zinc_version = "1.10.1"
scala3_version = "3.4.2"
twirl_version = "2.0.7"
def twirl_compiler_cli_repositories():
maven_install(
name = "twirl_compiler_cli_maven",
artifacts = [
"org.scala-lang:scala3-compiler_3:{}".format(scala3_version),
"org.scala-lang:scala3-library_3:{}".format(scala3_version),
# Set neverlink = True to avoid Scala 2 library being pulled on to the compiler classpath
maven.artifact("org.scala-lang", "scala3-sbt-bridge", scala3_version, neverlink = True),
"com.github.scopt:scopt_3:4.1.0",
"org.playframework.twirl:twirl-compiler_3:{}".format(twirl_version),
"org.scala-lang.modules:scala-parser-combinators_3:2.3.0",
"org.scala-sbt:compiler-interface:{}".format(zinc_version),
"org.scala-sbt:zinc_2.13:{}".format(zinc_version),
"org.scala-sbt:util-interface:{}".format(zinc_version),
],
repositories = [
"https://repo.maven.apache.org/maven2",
],
fail_if_repin_required = True,
fetch_sources = True,
maven_install_json = "//:twirl_compiler_cli_maven_install.json",
)