forked from bazel-contrib/rules_jvm_external
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWORKSPACE
More file actions
141 lines (119 loc) · 3.98 KB
/
WORKSPACE
File metadata and controls
141 lines (119 loc) · 3.98 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
workspace(name = "rules_jvm_external")
android_sdk_repository(name = "androidsdk")
local_repository(
name = "rules_jvm_external",
path = ".",
)
load("@rules_jvm_external//:gmaven.bzl", "gmaven_rules")
gmaven_rules()
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Begin test dependencies
load("//:defs.bzl", "maven_install")
load("//:specs.bzl", "maven")
maven_install(
artifacts = [
"androidx.test.espresso:espresso-core:3.1.1",
"androidx.test.espresso:espresso-web:3.1.1",
"androidx.test.ext:junit:1.1.0",
"androidx.test:runner:1.1.1",
"com.android.support:design:28.0.0",
"com.google.android.gms:play-services-maps:16.0.0",
"com.google.code.gson:gson:2.8.5",
"com.google.guava:guava:27.0-android",
"com.google.inject:guice:4.0",
"commons-io:commons-io:2.6",
"io.reactivex.rxjava2:rxjava:2.2.4",
"junit:junit:4.12",
"org.hamcrest:java-hamcrest:2.0.0.0",
"org.mockito:mockito-core:2.22.0",
"org.springframework:spring-core:5.1.3.RELEASE",
],
fetch_sources = True,
repositories = [
"https://jcenter.bintray.com/",
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
maven_install(
name = "other_maven",
artifacts = [
"com.google.guava:guava:27.0-jre",
],
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
],
)
maven_install(
name = "other_maven_with_exclusions",
artifacts = [
maven.artifact(
group = "com.google.guava",
artifact = "guava",
version = "27.0-jre",
exclusions = [
maven.exclusion(
group = "org.codehaus.mojo",
artifact = "animal-sniffer-annotations",
),
"com.google.j2objc:j2objc-annotations",
],
),
],
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
],
)
maven_install(
name = "unsafe_shared_cache",
artifacts = [
"com.google.guava:guava:27.0-jre",
],
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
],
use_unsafe_shared_cache = True,
)
# These artifacts helped discover limitations by the Maven resolver. Each
# artifact listed here *must have* an accompanying issue. We build_test these
# targets to ensure that they remain supported by the rule.
maven_install(
name = "regression_testing",
artifacts = [
# https://github.com/bazelbuild/rules_jvm_external/issues/74
"org.pantsbuild:jarjar:1.6.6",
# https://github.com/bazelbuild/rules_jvm_external/issues/59
"junit:junit:4.12",
# https://github.com/bazelbuild/rules_jvm_external/issues/101
"com.digitalasset:damlc:jar:osx:100.12.1",
"org.jetbrains.kotlin:kotlin-test:1.3.21",
],
fetch_sources = True,
repositories = [
"https://repo1.maven.org/maven2",
"https://digitalassetsdk.bintray.com/DigitalAssetSDK",
],
)
RULES_KOTLIN_VERSION = "da1232eda2ef90d4375e2d1677b32c7ddf09e8a1"
http_archive(
name = "io_bazel_rules_kotlin",
sha256 = "0bbb0e5e536f0c775f37bded59d4f8cfb8556e6c3d926fcc0f58bf3489bff470",
strip_prefix = "rules_kotlin-%s" % RULES_KOTLIN_VERSION,
url = "https://github.com/bazelbuild/rules_kotlin/archive/%s.tar.gz" % RULES_KOTLIN_VERSION,
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories()
kt_register_toolchains()
BAZEL_SKYLIB_TAG = "0.7.0"
http_archive(
name = "bazel_skylib",
sha256 = "2c62d8cd4ab1e65c08647eb4afe38f51591f43f7f0885e7769832fa137633dcb",
strip_prefix = "bazel-skylib-%s" % BAZEL_SKYLIB_TAG,
url = "https://github.com/bazelbuild/bazel-skylib/archive/%s.tar.gz" % BAZEL_SKYLIB_TAG,
)
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
bazel_skylib_workspace()
# End test dependencies