|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 18 | + |
| 19 | +RULES_JVM_EXTERNAL_TAG = "4.2" |
| 20 | + |
| 21 | +RULES_JVM_EXTERNAL_SHA = "cd1a77b7b02e8e008439ca76fd34f5b07aecb8c752961f9640dea15e9e5ba1ca" |
| 22 | + |
| 23 | +http_archive( |
| 24 | + name = "rules_jvm_external", |
| 25 | + sha256 = RULES_JVM_EXTERNAL_SHA, |
| 26 | + strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
| 27 | + url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 28 | +) |
| 29 | + |
| 30 | +load("@rules_jvm_external//:repositories.bzl", "rules_jvm_external_deps") |
| 31 | + |
| 32 | +rules_jvm_external_deps() |
| 33 | + |
| 34 | +load("@rules_jvm_external//:setup.bzl", "rules_jvm_external_setup") |
| 35 | + |
| 36 | +rules_jvm_external_setup() |
| 37 | + |
| 38 | +load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 39 | + |
| 40 | +maven_install( |
| 41 | + artifacts = [ |
| 42 | + "junit:junit:4.13.2", |
| 43 | + "com.alibaba:fastjson:1.2.76", |
| 44 | + "org.hamcrest:hamcrest-library:1.3", |
| 45 | + "io.netty:netty-all:4.1.65.Final", |
| 46 | + "org.slf4j:slf4j-api:1.7.7", |
| 47 | + "org.assertj:assertj-core:3.22.0", |
| 48 | + "org.mockito:mockito-core:3.10.0", |
| 49 | + "com.github.luben:zstd-jni:1.5.2-2", |
| 50 | + "org.lz4:lz4-java:1.8.0", |
| 51 | + "commons-validator:commons-validator:1.7", |
| 52 | + "org.apache.commons:commons-lang3:3.4", |
| 53 | + "org.hamcrest:hamcrest-core:1.3", |
| 54 | + # "io.openmessaging.storage:dledger:0.2.4", |
| 55 | + "net.java.dev.jna:jna:4.2.2", |
| 56 | + "ch.qos.logback:logback-classic:1.2.10", |
| 57 | + "ch.qos.logback:logback-core:1.2.10", |
| 58 | + "io.opentracing:opentracing-api:0.33.0", |
| 59 | + "io.opentracing:opentracing-mock:0.33.0", |
| 60 | + "commons-collections:commons-collections:3.2.2", |
| 61 | + "org.awaitility:awaitility:4.1.0", |
| 62 | + "commons-cli:commons-cli:1.4", |
| 63 | + "com.google.guava:guava:31.0.1-jre", |
| 64 | + "org.yaml:snakeyaml:1.30", |
| 65 | + "commons-codec:commons-codec:1.13", |
| 66 | + "commons-io:commons-io:2.7", |
| 67 | + "log4j:log4j:1.2.17", |
| 68 | + "com.google.truth:truth:0.30", |
| 69 | + "org.bouncycastle:bcpkix-jdk15on:1.69", |
| 70 | + "com.google.code.gson:gson:2.8.9", |
| 71 | + "com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.4.2", |
| 72 | + "org.apache.rocketmq:rocketmq-proto:2.0.0", |
| 73 | + "com.google.protobuf:protobuf-java:3.20.1", |
| 74 | + "com.google.protobuf:protobuf-java-util:3.20.1", |
| 75 | + "com.conversantmedia:disruptor:1.2.10", |
| 76 | + "javax.annotation:javax.annotation-api:1.3.2", |
| 77 | + "com.google.code.findbugs:jsr305:3.0.2", |
| 78 | + "org.checkerframework:checker-qual:3.12.0", |
| 79 | + "org.reflections:reflections:0.9.11", |
| 80 | + "org.openjdk.jmh:jmh-core:1.19", |
| 81 | + "org.openjdk.jmh:jmh-generator-annprocess:1.19", |
| 82 | + "com.github.ben-manes.caffeine:caffeine:2.9.3", |
| 83 | + "io.grpc:grpc-services:1.47.0", |
| 84 | + "io.grpc:grpc-netty-shaded:1.47.0", |
| 85 | + "io.grpc:grpc-context:1.47.0", |
| 86 | + "io.grpc:grpc-stub:1.47.0", |
| 87 | + "io.grpc:grpc-api:1.47.0", |
| 88 | + "io.grpc:grpc-testing:1.47.0", |
| 89 | + ], |
| 90 | + fetch_sources = True, |
| 91 | + repositories = [ |
| 92 | + # Private repositories are supported through HTTP Basic auth |
| 93 | + "https://repo1.maven.org/maven2", |
| 94 | + ], |
| 95 | +) |
| 96 | + |
| 97 | +http_archive( |
| 98 | + name = "io_buildbuddy_buildbuddy_toolchain", |
| 99 | + sha256 = "a2a5cccec251211e2221b1587af2ce43c36d32a42f5d881737db3b546a536510", |
| 100 | + strip_prefix = "buildbuddy-toolchain-829c8a574f706de5c96c54ca310f139f4acda7dd", |
| 101 | + urls = ["https://github.com/buildbuddy-io/buildbuddy-toolchain/archive/829c8a574f706de5c96c54ca310f139f4acda7dd.tar.gz"], |
| 102 | +) |
| 103 | + |
| 104 | +load("@io_buildbuddy_buildbuddy_toolchain//:deps.bzl", "buildbuddy_deps") |
| 105 | + |
| 106 | +buildbuddy_deps() |
| 107 | + |
| 108 | +load("@io_buildbuddy_buildbuddy_toolchain//:rules.bzl", "buildbuddy") |
| 109 | + |
| 110 | +buildbuddy(name = "buildbuddy_toolchain") |
| 111 | + |
| 112 | +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 113 | + |
| 114 | +http_archive( |
| 115 | + name = "rbe_default", |
| 116 | + # sha256 = "c0d428774cbe70d477e1d07581d863f8dbff4ba6a66d20502d7118354a814bea", |
| 117 | + urls = ["https://storage.googleapis.com/rbe-toolchain/bazel-configs/rbe-ubuntu1604/latest/rbe_default.tar"], |
| 118 | +) |
| 119 | + |
| 120 | +http_archive( |
| 121 | + name = "bazel_toolchains", |
| 122 | + urls = ["https://github.com/bazelbuild/bazel-toolchains/archive/dac71231098d891e5c4b74a2078fe9343feef510.tar.gz"], |
| 123 | + strip_prefix = "bazel-toolchains-dac71231098d891e5c4b74a2078fe9343feef510", |
| 124 | + sha256 = "56d5370eb99559b4c74f334f81bc8a298f728bd16d5a4333c865c2ad10fae3bc", |
| 125 | +) |
| 126 | + |
| 127 | +load("@bazel_toolchains//repositories:repositories.bzl", bazel_toolchains_repositories = "repositories") |
| 128 | +bazel_toolchains_repositories() |
0 commit comments