-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
103 lines (90 loc) · 4.29 KB
/
WORKSPACE
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz",
],
)
# See https://github.com/bazelbuild/rules_scala/releases for up to date version information.
http_archive(
name = "io_bazel_rules_scala",
sha256 = "71324bef9bc5a885097e2960d5b8effed63399b55572219919d25f43f468c716",
strip_prefix = "rules_scala-6.2.1",
url = "https://github.com/bazelbuild/rules_scala/releases/download/v6.2.1/rules_scala-v6.2.1.tar.gz",
)
load("@io_bazel_rules_scala//:scala_config.bzl", "scala_config")
# Stores Scala version and other configuration
# 2.12 is a default version, other versions can be use by passing them explicitly:
# scala_config(scala_version = "2.11.12")
# Scala 3 requires extras...
# 3.2 should be supported on master. Please note that Scala artifacts for version (3.2.2) are not defined in
# Rules Scala, they need to be provided by your WORKSPACE. You can use external loader like
# https://github.com/bazelbuild/rules_jvm_external
scala_config()
# loads other rules Rules Scala depends on
load("@io_bazel_rules_scala//scala:scala.bzl", "rules_scala_setup")
rules_scala_setup()
# Loads Maven deps like Scala compiler and standard libs. On production projects you should consider
# defining a custom deps toolchains to use your project libs instead
load("@io_bazel_rules_scala//scala:scala.bzl", "rules_scala_toolchain_deps_repositories")
rules_scala_toolchain_deps_repositories(fetch_sources = True)
load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies", "rules_proto_toolchains")
rules_proto_dependencies()
rules_proto_toolchains()
load("@io_bazel_rules_scala//scala:toolchains.bzl", "scala_register_toolchains")
scala_register_toolchains()
# optional: setup ScalaTest toolchain and dependencies
load("@io_bazel_rules_scala//testing:scalatest.bzl", "scalatest_repositories", "scalatest_toolchain")
scalatest_repositories()
scalatest_toolchain()
# External dependencies
RULES_JVM_EXTERNAL_TAG = "4.5"
RULES_JVM_EXTERNAL_SHA = "b17d7388feb9bfa7f2fa09031b32707df529f26c91ab9e5d909eb1676badd9a6"
http_archive(
name = "rules_jvm_external",
strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG,
sha256 = RULES_JVM_EXTERNAL_SHA,
url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG,
)
load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps")
rules_jvm_external_deps()
load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup")
rules_jvm_external_setup()
load("@rules_jvm_external//:defs.bzl", "maven_install")
maven_install(
artifacts = [
"com.fasterxml.jackson.core:jackson-annotations:2.14.2",
"com.fasterxml.jackson.core:jackson-core:2.14.2",
"com.fasterxml.jackson.core:jackson-databind:2.14.2",
"com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2",
"com.fasterxml.jackson.module:jackson-module-scala_2.12:2.14.2",
"com.github.etaty:rediscala_2.12:1.8.0",
"com.github.tminglei:slick-pg_2.12:0.16.1",
"com.github.tminglei:slick-pg_core_2.12:0.16.1",
"com.typesafe.akka:akka-actor_2.12:2.7.0",
"com.typesafe.akka:akka-http-core_2.12:10.4.0",
"com.typesafe.akka:akka-http_2.12:10.4.0",
"com.typesafe.akka:akka-slf4j_2.12:2.7.0",
"com.typesafe.akka:akka-stream_2.12:2.7.0",
"com.typesafe.scala-logging:scala-logging_2.12:3.9.2",
"com.typesafe.slick:slick-hikaricp_2.12:3.3.3",
"com.typesafe.slick:slick_2.12:3.3.3",
"com.typesafe:config:1.4.2",
"io.jsonwebtoken:jjwt-api:0.11.5",
"io.jsonwebtoken:jjwt-impl:0.11.5",
"io.jsonwebtoken:jjwt-jackson:0.11.5",
"org.parboiled:parboiled_2.12:2.1.4",
"org.reactivestreams:reactive-streams:1.0.4",
"org.sangria-graphql:sangria-marshalling-api_2.12:1.0.3",
"org.sangria-graphql:sangria_2.12:1.4.2",
"org.scala-lang.modules:scala-collection-compat_2.12:2.4.3",
"org.scalactic:scalactic_2.12:3.1.0",
"org.scalatest:scalatest_2.12:3.1.0",
"org.slf4j:slf4j-api:1.7.26",
],
repositories = [
"https://repo.maven.apache.org/maven2",
],
)