@@ -57,6 +57,16 @@ http_archive(
57
57
url = "https://github.com/bazelbuild/rules_java/releases/download/5.3.5/rules_java-5.3.5.tar.gz" ,
58
58
)
59
59
60
+ #############################
61
+ # Load Android Sdk
62
+ #############################
63
+
64
+ android_sdk_repository (
65
+ name = "androidsdk" ,
66
+ api_level = 32 ,
67
+ build_tools_version = "32.0.0" ,
68
+ )
69
+
60
70
####################################################
61
71
# Load Protobuf repository (needed by bazel-common)
62
72
####################################################
@@ -78,21 +88,6 @@ rules_proto_dependencies()
78
88
79
89
rules_proto_toolchains ()
80
90
81
- #############################
82
- # Load Bazel-Common repository
83
- #############################
84
-
85
- http_archive (
86
- name = "google_bazel_common" ,
87
- sha256 = "82a49fb27c01ad184db948747733159022f9464fc2e62da996fa700594d9ea42" ,
88
- strip_prefix = "bazel-common-2a6b6406e12208e02b2060df0631fb30919080f3" ,
89
- urls = ["https://github.com/google/bazel-common/archive/2a6b6406e12208e02b2060df0631fb30919080f3.zip" ],
90
- )
91
-
92
- load ("@google_bazel_common//:workspace_defs.bzl" , "google_common_workspace_rules" )
93
-
94
- google_common_workspace_rules ()
95
-
96
91
#############################
97
92
# Load Protobuf dependencies
98
93
#############################
@@ -187,8 +182,20 @@ load("@rules_jvm_external//:defs.bzl", "maven_install")
187
182
188
183
ANDROID_LINT_VERSION = "30.1.0"
189
184
185
+ ANT_VERSION = "1.9.6"
186
+
187
+ ASM_VERSION = "9.6"
188
+
190
189
AUTO_COMMON_VERSION = "1.2.1"
191
190
191
+ BYTE_BUDDY_VERSION = "1.9.10"
192
+
193
+ CHECKER_FRAMEWORK_VERSION = "2.5.3"
194
+
195
+ ECLIPSE_SISU_VERSION = "0.3.0"
196
+
197
+ ERROR_PRONE_VERSION = "2.14.0"
198
+
192
199
# NOTE(bcorso): Even though we set the version here, our Guava version in
193
200
# processor code will use whatever version is built into JavaBuilder, which is
194
201
# tied to the version of Bazel we're using.
@@ -198,14 +205,10 @@ GRPC_VERSION = "1.2.0"
198
205
199
206
INCAP_VERSION = "0.2"
200
207
201
- BYTE_BUDDY_VERSION = "1.9.10"
202
-
203
- CHECKER_FRAMEWORK_VERSION = "2.5.3"
204
-
205
- ERROR_PRONE_VERSION = "2.14.0"
206
-
207
208
KSP_VERSION = KOTLIN_VERSION + "-1.0.19"
208
209
210
+ MAVEN_VERSION = "3.3.3"
211
+
209
212
maven_install (
210
213
artifacts = [
211
214
"androidx.annotation:annotation:1.1.0" ,
@@ -264,16 +267,27 @@ maven_install(
264
267
"io.grpc:grpc-protobuf:%s" % GRPC_VERSION ,
265
268
"jakarta.inject:jakarta.inject-api:2.0.1" ,
266
269
"javax.annotation:javax.annotation-api:1.3.2" ,
270
+ "javax.enterprise:cdi-api:1.0" ,
267
271
"javax.inject:javax.inject:1" ,
268
272
"javax.inject:javax.inject-tck:1" ,
269
273
"junit:junit:4.13" ,
270
274
"net.bytebuddy:byte-buddy:%s" % BYTE_BUDDY_VERSION ,
271
275
"net.bytebuddy:byte-buddy-agent:%s" % BYTE_BUDDY_VERSION ,
272
276
"net.ltgt.gradle.incap:incap:%s" % INCAP_VERSION ,
273
277
"net.ltgt.gradle.incap:incap-processor:%s" % INCAP_VERSION ,
278
+ "org.apache.ant:ant:%s" % ANT_VERSION ,
279
+ "org.apache.ant:ant-launcher:%s" % ANT_VERSION ,
280
+ "org.apache.maven:maven-artifact:%s" % MAVEN_VERSION ,
281
+ "org.apache.maven:maven-model:%s" % MAVEN_VERSION ,
282
+ "org.apache.maven:maven-plugin-api:%s" % MAVEN_VERSION ,
274
283
"org.checkerframework:checker-compat-qual:%s" % CHECKER_FRAMEWORK_VERSION ,
275
284
"org.checkerframework:dataflow:%s" % CHECKER_FRAMEWORK_VERSION ,
276
285
"org.checkerframework:javacutil:%s" % CHECKER_FRAMEWORK_VERSION ,
286
+ "org.codehaus.plexus:plexus-utils:3.0.20" ,
287
+ "org.codehaus.plexus:plexus-classworlds:2.5.2" ,
288
+ "org.codehaus.plexus:plexus-component-annotations:1.5.5" ,
289
+ "org.eclipse.sisu:org.eclipse.sisu.plexus:%s" % ECLIPSE_SISU_VERSION ,
290
+ "org.eclipse.sisu:org.eclipse.sisu.inject:%s" % ECLIPSE_SISU_VERSION ,
277
291
"org.hamcrest:hamcrest-core:1.3" ,
278
292
"org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:%s" % KOTLIN_VERSION ,
279
293
"org.jetbrains.kotlin:kotlin-compiler-embeddable:%s" % KOTLIN_VERSION ,
@@ -282,7 +296,11 @@ maven_install(
282
296
"org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.6.2" ,
283
297
"org.jspecify:jspecify:0.3.0" ,
284
298
"org.mockito:mockito-core:2.28.2" ,
299
+ "org.pantsbuild:jarjar:1.7.2" ,
285
300
"org.objenesis:objenesis:1.0" ,
301
+ "org.ow2.asm:asm:%s" % ASM_VERSION ,
302
+ "org.ow2.asm:asm-tree:%s" % ASM_VERSION ,
303
+ "org.ow2.asm:asm-commons:%s" % ASM_VERSION ,
286
304
"org.robolectric:robolectric:4.4" ,
287
305
"org.robolectric:shadows-framework:4.4" , # For ActivityController
288
306
],
0 commit comments