forked from pixie-io/pixie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thrift.bzl
46 lines (42 loc) · 2.39 KB
/
thrift.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 2018- The Pixie Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
load("@io_bazel_rules_scala//twitter_scrooge:twitter_scrooge.bzl", "twitter_scrooge")
load("@rules_jvm_external//:defs.bzl", "maven_install")
def thrift_deps(scala_version):
twitter_scrooge()
finagle_version = "22.7.0"
scala_minor_version = ".".join(scala_version.split(".")[:2])
maven_install(
name = "thrift_deps",
artifacts = [
"com.twitter:finagle-thriftmux_%s:%s" % (scala_minor_version, finagle_version),
"com.twitter:finagle-mux_%s:%s" % (scala_minor_version, finagle_version),
"com.twitter:finagle-core_%s:%s" % (scala_minor_version, finagle_version),
"com.twitter:scrooge-core_%s:%s" % (scala_minor_version, finagle_version),
"com.twitter:scrooge-generator_%s:%s" % (scala_minor_version, finagle_version),
"com.twitter:finagle-http_%s:%s" % (scala_minor_version, finagle_version),
"org.apache.thrift:libthrift:0.10.0",
"org.slf4j:slf4j-api:1.7.36",
"ch.qos.logback:logback-core:1.2.10",
"ch.qos.logback:logback-classic:1.2.10",
],
repositories = ["https://repo1.maven.org/maven2"],
override_targets = {
"io.netty:netty-tcnative-boringssl-static": "@//src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux/netty_deps:io_netty_netty_tcnative_boringssl_static",
"io.netty:netty-tcnative-boringssl-static:linux-aarch_64": "@//src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux/netty_deps:io_netty_netty_tcnative_boringssl_static_linux_aarch_64",
"io.netty:netty-tcnative-boringssl-static:linux-x86_64": "@//src/stirling/source_connectors/socket_tracer/testing/containers/thriftmux/netty_deps:io_netty_netty_tcnative_boringssl_static_linux_x86_64",
},
)