ronshapiro | 31d711c | 2017-01-13 08:58:02 -0800 | [diff] [blame] | 1 | # Copyright (C) 2017 The Dagger Authors. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
ronshapiro | 40c9a99 | 2018-12-19 20:42:26 -0800 | [diff] [blame] | 15 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 16 | |
ronshapiro | 87abe78 | 2017-04-27 12:39:35 -0700 | [diff] [blame] | 17 | http_archive( |
ronshapiro | c7fb974 | 2018-06-07 20:47:25 -0700 | [diff] [blame] | 18 | name = "google_bazel_common", |
tvanderlippe | b6d53ad | 2019-08-07 03:23:12 -0700 | [diff] [blame] | 19 | strip_prefix = "bazel-common-365bdc5779d2fa86eca9e7ed99f1198e431d049d", |
| 20 | urls = ["https://github.com/google/bazel-common/archive/365bdc5779d2fa86eca9e7ed99f1198e431d049d.zip"], |
ronshapiro | 87abe78 | 2017-04-27 12:39:35 -0700 | [diff] [blame] | 21 | ) |
| 22 | |
ronshapiro | c7fb974 | 2018-06-07 20:47:25 -0700 | [diff] [blame] | 23 | load("@google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules") |
ronshapiro | 87abe78 | 2017-04-27 12:39:35 -0700 | [diff] [blame] | 24 | |
ronshapiro | c7fb974 | 2018-06-07 20:47:25 -0700 | [diff] [blame] | 25 | google_common_workspace_rules() |
ronshapiro | f1d4925 | 2019-04-11 13:47:03 -0700 | [diff] [blame] | 26 | |
| 27 | # This fixes an issue with protobuf starting to use zlib by default in 3.7.0. |
| 28 | # TODO(ronshapiro): Figure out if this is in fact necessary, or if proto can depend on the |
| 29 | # @bazel_tools library directly. See discussion in |
| 30 | # https://github.com/protocolbuffers/protobuf/pull/5389#issuecomment-481785716 |
| 31 | bind( |
| 32 | name = "zlib", |
| 33 | actual = "@bazel_tools//third_party/zlib", |
| 34 | ) |
danysantiago | 646e033 | 2019-09-05 08:05:21 -0700 | [diff] [blame] | 35 | |
| 36 | RULES_JVM_EXTERNAL_TAG = "2.7" |
| 37 | |
| 38 | RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74" |
| 39 | |
| 40 | http_archive( |
| 41 | name = "rules_jvm_external", |
| 42 | sha256 = RULES_JVM_EXTERNAL_SHA, |
| 43 | strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
| 44 | url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 45 | ) |
| 46 | |
| 47 | load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 48 | |
| 49 | maven_install( |
| 50 | artifacts = [ |
erichang | 39fa2cc | 2019-10-23 15:34:24 -0700 | [diff] [blame^] | 51 | "com.android.support:support-annotations:25.0.0", |
| 52 | "com.android.support:support-fragment:25.0.0", |
| 53 | "com.android.support:appcompat-v7:25.0.0", |
danysantiago | 646e033 | 2019-09-05 08:05:21 -0700 | [diff] [blame] | 54 | "org.jetbrains.kotlin:kotlin-stdlib:1.3.50", |
| 55 | "org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.1.0", |
| 56 | ], |
| 57 | repositories = [ |
| 58 | "https://repo1.maven.org/maven2", |
erichang | 39fa2cc | 2019-10-23 15:34:24 -0700 | [diff] [blame^] | 59 | "https://maven.google.com", |
danysantiago | 646e033 | 2019-09-05 08:05:21 -0700 | [diff] [blame] | 60 | ], |
| 61 | ) |