|
| 1 | +# These need needs to be consistent with their counterparts in build_extensions/axt_deps_versions.bzl. |
| 2 | +KOTLIN_VERSION = "2.1.0" |
| 3 | +KOTLINX_COROUTINES_VERSION = "1.7.1" |
| 4 | +GRPC_VERSION = "1.68.1" |
| 5 | +# TODO(brettchabot): make this the same as GRPC_VERSION. |
| 6 | +# Tryng to do so results in `external/grpc-java~/okhttp/src/main/java/io/grpc/okhttp/ExceptionHandlingFrameWriter.java:147: error: [strict] Using type okio.Buffer from an indirect dependency (TOOL_INFO: "@maven//:com_squareup_okio_okio_jvm")` |
| 7 | +GRPC_MAVEN_VERSION = "1.54.1" |
| 8 | + |
| 9 | +bazel_dep(name = "rules_java", version = "8.6.0") |
| 10 | +bazel_dep(name = "rules_jvm_external", version = "6.6") |
| 11 | +bazel_dep(name = "rules_android", version = "0.6.3", repo_name = "build_bazel_rules_android") |
| 12 | +bazel_dep(name = "rules_kotlin", version = "2.1.3", repo_name = "io_bazel_rules_kotlin") |
| 13 | +bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf") |
| 14 | +bazel_dep(name = "grpc-java", version = GRPC_VERSION) |
| 15 | +bazel_dep(name = "rules_robolectric", version = "4.14.1.2", repo_name = "robolectric") |
| 16 | + |
| 17 | +# Pin the version of rules_robolectric so that it matches the robolectric version we get from maven. |
| 18 | +single_version_override( |
| 19 | + module_name = "rules_robolectric", |
| 20 | + version = "4.14.1.2", |
| 21 | +) |
| 22 | + |
| 23 | +# maven dependencies |
| 24 | +maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") |
| 25 | + |
| 26 | +maven.artifact( |
| 27 | + artifact = "accessibility-test-framework", |
| 28 | + # exclude the org.checkerframework dependency since that require |
| 29 | + # java8 compatibility. See b/176926990 |
| 30 | + # accessibility-test-framework depends on hamcrest 2.2 which causes 'Using type org.hamcrest.Matcher from an indirect dependency' compile errors |
| 31 | + exclusions = [ |
| 32 | + "org.checkerframework:checker", |
| 33 | + "org.hamcrest:hamcrest-core", |
| 34 | + "org.hamcrest:hamcrest-library", |
| 35 | + ], |
| 36 | + group = "com.google.android.apps.common.testing.accessibility.framework", |
| 37 | + version = "3.1.2", |
| 38 | +) |
| 39 | + |
| 40 | +maven.install( |
| 41 | + name = "maven", |
| 42 | + artifacts = [ |
| 43 | + "androidx.annotation:annotation:1.7.0-beta01", |
| 44 | + "androidx.concurrent:concurrent-futures:1.1.0", |
| 45 | + "androidx.concurrent:concurrent-futures-ktx:1.1.0", |
| 46 | + "androidx.core:core:1.6.0", |
| 47 | + "androidx.lifecycle:lifecycle-common:2.3.1", |
| 48 | + "androidx.multidex:multidex:2.0.0", |
| 49 | + "androidx.tracing:tracing:1.1.0", |
| 50 | + "androidx.window:window-java:1.1.0", |
| 51 | + "androidx.window:window-core:1.1.0", |
| 52 | + "com.google.dagger:dagger-compiler:2.46", |
| 53 | + "com.google.dagger:dagger-producers:2.46", |
| 54 | + "com.google.dagger:dagger:2.46", |
| 55 | + "com.google.googlejavaformat:google-java-format:1.4", |
| 56 | + "com.squareup:javapoet:1.9.0", |
| 57 | + "io.grpc:grpc-okhttp:%s" % GRPC_MAVEN_VERSION, |
| 58 | + "io.grpc:grpc-api:%s" % GRPC_MAVEN_VERSION, |
| 59 | + "io.grpc:grpc-stub:%s" % GRPC_MAVEN_VERSION, |
| 60 | + "io.grpc:grpc-core:%s" % GRPC_MAVEN_VERSION, |
| 61 | + "io.grpc:grpc-context:%s" % GRPC_MAVEN_VERSION, |
| 62 | + "io.grpc:grpc-protobuf-lite:%s" % GRPC_MAVEN_VERSION, |
| 63 | + "junit:junit:4.13.2", |
| 64 | + "org.ccil.cowan.tagsoup:tagsoup:1.2.1", |
| 65 | + "org.hamcrest:hamcrest-library:1.3", |
| 66 | + "org.pantsbuild:jarjar:1.7.2", |
| 67 | + "org.jetbrains.kotlin:kotlin-stdlib:%s" % KOTLIN_VERSION, |
| 68 | + "org.jetbrains.kotlinx:kotlinx-coroutines-core:%s" % KOTLINX_COROUTINES_VERSION, |
| 69 | + "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:%s" % KOTLINX_COROUTINES_VERSION, |
| 70 | + "org.jetbrains.kotlinx:kotlinx-coroutines-android:%s" % KOTLINX_COROUTINES_VERSION, |
| 71 | + "org.robolectric:robolectric:4.14.1", |
| 72 | + ], |
| 73 | + fetch_sources = True, |
| 74 | + repositories = [ |
| 75 | + "https://maven.google.com", |
| 76 | + "https://repo1.maven.org/maven2", |
| 77 | + "https://dl.bintray.com/linkedin/maven", |
| 78 | + ], |
| 79 | +) |
| 80 | + |
| 81 | +use_repo(maven, "maven") |
| 82 | + |
| 83 | +# need to have a isolated version tree for listenablefuture, because otherwise |
| 84 | +# listenablefuture will get resolved to 9999.0-empty-to-avoid-conflict-with-guava |
| 85 | +maven.install( |
| 86 | + name = "maven_listenablefuture", |
| 87 | + artifacts = [ |
| 88 | + "com.google.guava:listenablefuture:1.0", |
| 89 | + ], |
| 90 | + repositories = [ |
| 91 | + "https://maven.google.com", |
| 92 | + "https://repo1.maven.org/maven2", |
| 93 | + "https://dl.bintray.com/linkedin/maven", |
| 94 | + ], |
| 95 | +) |
| 96 | +use_repo(maven, "maven_listenablefuture") |
| 97 | + |
0 commit comments