-
Notifications
You must be signed in to change notification settings - Fork 1
/
WORKSPACE
227 lines (192 loc) · 8.16 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
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
workspace(name = "idea_settings")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external")
# To view newer releases: https://www.jetbrains.com/intellij-repository/releases/
IDEA_VERSION = "2021.1"
IDEA_IC_SHA256 = "e9351b924fe7da8645989063e52240e048c0baecf7abf6188a7e1f14e08c9d4e"
IDEA_IU_SHA256 = "099f3e974642441196a762e948da4e01d33f59526109f4be9f8e724d8b221598"
IDEA_IC_SOURCES_SHA256 = "f6b0202b8fbafb10d841614942f78fc5d15b0c118c764e3e0c2b67949df8c253"
http_archive(
name = "idea-IC",
build_file = "idea-IC.BUILD",
sha256 = IDEA_IC_SHA256,
url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/{0}/ideaIC-{0}.zip".format(IDEA_VERSION),
)
java_import_external(
name = "idea-IC-sources",
jar_sha256 = IDEA_IC_SOURCES_SHA256,
jar_urls = ["https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/{0}/ideaIC-{0}-sources.jar".format(IDEA_VERSION)],
)
http_archive(
name = "idea-IU",
build_file = "idea-IU.BUILD",
sha256 = IDEA_IU_SHA256,
url = "https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIU/{0}/ideaIU-{0}.zip".format(IDEA_VERSION),
)
http_archive(
name = "bazel-deps",
sha256 = "5dac398f0dc57f76566642cf21f10960eed83f4bb56c5860170c0582f5581194",
strip_prefix = "bazel-deps-e3f77e22d9f5b070915067a766607cfc96835c98",
url = "https://github.com/johnynek/bazel-deps/archive/e3f77e22d9f5b070915067a766607cfc96835c98.zip",
)
http_archive(
name = "CheckStyle-IDEA",
build_file = "CheckStyle-IDEA.BUILD",
sha256 = "4e7219478ff923736a824bee1e262b6090116ae20971d35dc0b1cd464090d293",
strip_prefix = "CheckStyle-IDEA",
url = "https://github.com/jshiell/checkstyle-idea/releases/download/5.40.0/CheckStyle-IDEA-5.40.0.zip",
)
http_archive(
name = "File-Watchers",
build_file = "File-Watchers.BUILD",
sha256 = "9bd880531233a7f8ff33205e1d23236cc1d831fdcbf4271aba6f483f69778015",
strip_prefix = "fileWatcher",
url = "https://plugins.jetbrains.com/files/7177/115240/fileWatcher-211.6693.44.zip",
)
java_import_external(
name = "Save-Actions",
jar_sha256 = "443cf9973ff0ac9e4d517632360f581cbe55d4d906f729ff2b81d69d966d8e25",
jar_urls = ["https://github.com/dubreuia/intellij-plugin-save-actions/releases/download/v2.0.0/intellij-plugin-save-actions-2.0.0.jar"],
neverlink = True,
)
http_archive(
name = "SonarLint",
build_file = "SonarLint.BUILD",
sha256 = "1d4da536f781be5718d93d291fd9f11939737fa93468fde3cb30d883184f5369",
strip_prefix = "sonarlint-intellij",
url = "https://plugins.jetbrains.com/files/7973/112566/sonarlint-intellij-4.14.2.28348.zip",
)
http_archive(
name = "intellij_with_bazel",
sha256 = "bc3187cc94852f2d846cc427b9c1c420aa3f8726886dfe223f98872a0f490e9b",
strip_prefix = "intellij-485a11132a7fd1b563357fa4263dd6ca3e3dd275",
url = "https://github.com/bazelbuild/intellij/archive/485a11132a7fd1b563357fa4263dd6ca3e3dd275.zip",
)
http_archive(
name = "io_bazel_rules_kotlin",
sha256 = "6194a864280e1989b6d8118a4aee03bb50edeeae4076e5bc30eef8a98dcd4f07",
url = "https://github.com/bazelbuild/rules_kotlin/releases/download/v1.5.0-alpha-2/rules_kotlin_release.tgz",
)
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kotlin_repositories", "kt_register_toolchains")
kotlin_repositories()
kt_register_toolchains()
http_archive(
name = "rules_pkg",
sha256 = "02de387c5ef874379e784ac968bf6efffe5285a168cab5a3169e08cfc634fd22",
url = "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.2/rules_pkg-0.2.2.tar.gz",
)
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
rules_pkg_dependencies()
# Test dependencies
http_archive(
name = "javapoet",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "javapoet",
srcs = glob(["**"]),
)""",
sha256 = "6b3fc0ae4e321286d09ce633037152a3194f7ebbd6d8b06a9f195fc7c9255d65",
strip_prefix = "javapoet-javapoet-1.11.1",
url = "https://github.com/square/javapoet/archive/javapoet-1.11.1.zip",
)
http_archive(
name = "auto",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "auto",
srcs = glob(["**"]),
)""",
sha256 = "c926daf62d24bb6ad6289e997d67dcacbb1054e6cc2d9ba4c406f509e7c20875",
strip_prefix = "auto-auto-value-1.6.6",
url = "https://github.com/google/auto/archive/auto-value-1.6.6.zip",
)
http_archive(
name = "maven-bin",
build_file_content = """
package(default_visibility = ["//visibility:public"])
filegroup(
name = "maven-bin",
srcs = glob(["**"]),
)""",
sha256 = "26ad91d751b3a9a53087aefa743f4e16a17741d3915b219cf74112bf87a438c5",
strip_prefix = "apache-maven-3.6.3",
url = "https://archive.apache.org/dist/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz",
)
http_archive(
name = "build_bazel_integration_testing",
sha256 = "e055ff971787a27d6942a83ffd182953988c88dfa82e89138ccc83bf410a65d6",
strip_prefix = "bazel-integration-testing-2a4f6c244312c036e0f3a125ee6086637ee7723b",
url = "https://github.com/bazelbuild/bazel-integration-testing/archive/2a4f6c244312c036e0f3a125ee6086637ee7723b.zip",
)
load("@build_bazel_integration_testing//tools:bazel_java_integration_test.bzl", "bazel_java_integration_test_deps")
bazel_java_integration_test_deps()
http_archive(
name = "google_bazel_common",
sha256 = "090d1f394c2bbeae37f091a9d7853bafc7a9b3174d1e100d762fdd07767a2269",
strip_prefix = "bazel-common-1c8dcb31eed0713306cb6dc07f8334d84c925a01",
urls = ["https://github.com/google/bazel-common/archive/1c8dcb31eed0713306cb6dc07f8334d84c925a01.zip"],
)
load("@google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules")
google_common_workspace_rules()
http_archive(
name = "rules_jvm_external",
sha256 = "62133c125bf4109dfd9d2af64830208356ce4ef8b165a6ef15bbff7460b35c3a",
strip_prefix = "rules_jvm_external-3.0",
url = "https://github.com/bazelbuild/rules_jvm_external/archive/3.0.zip",
)
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_jvm_external//:specs.bzl", "maven")
maven_install(
artifacts = [
"com.fasterxml.jackson.core:jackson-annotations:2.10.3",
"com.fasterxml.jackson.core:jackson-core:2.10.3",
"com.fasterxml.jackson.core:jackson-databind:2.10.3",
"com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.10.3",
"com.fasterxml.jackson.datatype:jackson-datatype-guava:2.10.3",
"com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.10.3",
"com.github.victools:jsonschema-generator:4.7.0",
"com.github.victools:jsonschema-module-jackson:4.7.0",
"com.google.dagger:dagger:2.26",
"com.google.guava:guava:27.0.1-jre",
"javax.inject:javax.inject:1",
"junit:junit:4.12",
"org.assertj:assertj-core:3.11.1",
"org.xmlunit:xmlunit-assertj:2.6.2",
maven.artifact(
group = "com.fasterxml.jackson.module",
artifact = "jackson-module-kotlin",
version = "2.10.1",
exclusions = [
# Keeping this generates a warning about bundling in a Kotlin runtime, but is necessary for deserialisation.
# "org.jetbrains.kotlin:kotlin-reflect",
"org.jetbrains.kotlin:kotlin-stdlib",
],
),
maven.artifact(
group = "com.google.dagger",
artifact = "dagger-compiler",
version = "2.26",
exclusions = ["org.jetbrains.kotlin:kotlin-stdlib"],
),
maven.artifact(
group = "io.mockk",
artifact = "mockk",
version = "1.9",
exclusions = [
"org.jetbrains.kotlin:kotlin-reflect",
"org.jetbrains.kotlin:kotlin-stdlib",
],
),
],
fetch_sources = True,
maven_install_json = "//:maven_install.json",
repositories = [
"https://jcenter.bintray.com/",
"https://maven.google.com",
"https://repo1.maven.org/maven2",
],
)
load("@maven//:defs.bzl", "pinned_maven_install")
pinned_maven_install()