blob: fe2af24078ca694ce6905e149d7b274614120f2e [file] [log] [blame]
ronshapiro31d711c2017-01-13 08:58:02 -08001# 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
ronshapiro40c9a992018-12-19 20:42:26 -080015load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
16
ronshapiro87abe782017-04-27 12:39:35 -070017http_archive(
ronshapiroc7fb9742018-06-07 20:47:25 -070018 name = "google_bazel_common",
tvanderlippeb6d53ad2019-08-07 03:23:12 -070019 strip_prefix = "bazel-common-365bdc5779d2fa86eca9e7ed99f1198e431d049d",
20 urls = ["https://github.com/google/bazel-common/archive/365bdc5779d2fa86eca9e7ed99f1198e431d049d.zip"],
ronshapiro87abe782017-04-27 12:39:35 -070021)
22
ronshapiroc7fb9742018-06-07 20:47:25 -070023load("@google_bazel_common//:workspace_defs.bzl", "google_common_workspace_rules")
ronshapiro87abe782017-04-27 12:39:35 -070024
ronshapiroc7fb9742018-06-07 20:47:25 -070025google_common_workspace_rules()
ronshapirof1d49252019-04-11 13:47:03 -070026
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
31bind(
32 name = "zlib",
33 actual = "@bazel_tools//third_party/zlib",
34)
danysantiago646e0332019-09-05 08:05:21 -070035
36RULES_JVM_EXTERNAL_TAG = "2.7"
37
38RULES_JVM_EXTERNAL_SHA = "f04b1466a00a2845106801e0c5cec96841f49ea4e7d1df88dc8e4bf31523df74"
39
40http_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
47load("@rules_jvm_external//:defs.bzl", "maven_install")
48
49maven_install(
50 artifacts = [
erichang39fa2cc2019-10-23 15:34:24 -070051 "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",
danysantiago646e0332019-09-05 08:05:21 -070054 "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",
erichang39fa2cc2019-10-23 15:34:24 -070059 "https://maven.google.com",
danysantiago646e0332019-09-05 08:05:21 -070060 ],
61)