forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.tools
97 lines (83 loc) · 2.46 KB
/
BUILD.tools
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# JVM artifacts that Pants itself depends on.
# http://pantsbuild.github.io/dev_tasks.html#jvm-tool-bootstrapping
target(
name = 'scala-js-cli',
dependencies=[
'contrib/scalajs/3rdparty/jvm/org/scala-js:cli'
],
)
target(
name = 'scala-js-compiler',
dependencies=[
'contrib/scalajs/3rdparty/jvm/org/scala-js:compiler',
'contrib/scalajs/3rdparty/jvm/org/scala-js:library',
],
)
target(
name = 'scala-js-library',
dependencies = [
'contrib/scalajs/3rdparty/jvm/org/scala-js:library',
],
)
# TODO: Attempting to use these targets fails because BootstrapJvmTools.get_alternate_target_roots()
# doesn't descend into dependent target directories and uses the same build_graph it starts with.
# target(
# name='scrooge-gen',
# dependencies=[
# '3rdparty/jvm/com/twitter:scrooge-gen',
# ],
# )
# target(
# name='scrooge-linter',
# dependencies=[
# '3rdparty/jvm/com/twitter:scrooge-linter',
# ],
# )
SCROOGE_REV = '18.12.0'
# NB: The scrooge tools do not mix their classpaths with the sources they interact with, and
# therefore they do not need to use the `scala-platform` via scala_jar.
jar_library(
name = 'scrooge-gen',
jars = [
jar(org='com.twitter', name='scrooge-generator_2.11', rev=SCROOGE_REV),
],
)
jar_library(
name = 'scrooge-linter',
jars = [
jar(org='com.twitter', name='scrooge-linter_2.11', rev=SCROOGE_REV),
],
)
# Google doesn't publish Kythe jars (yet?). So we publish them to a custom repo
# (https://github.com/toolchainlabs/binhost) for now. See build-support/ivy/ivysettings.xml
# for more info.
jar_library(
name='kythe-java-extractor',
jars = [
jar(org='kythe', name='javac_extractor', rev='v0.0.30-toolchain001-26a6b03b-000'),
],
)
jar_library(
name='kythe-java-indexer',
jars = [
jar(org='kythe', name='java_indexer', rev='v0.0.30-toolchain001-26a6b03b-000'),
],
)
# Running Kythe on JDK8 requires a standalone javac 9 on the bootclasspath.
# This jar is published to the same custom repo as the Kythe jars.
jar_library(
name='javac9',
jars = [
jar(org='java', name='javac', rev='9+181-r4173-1',
url='https://raw.githubusercontent.com/toolchainlabs/binhost/master/java/javac/9+181-r4173-1/javac-9+181-r4173-1.jar'),
],
)
# Runtime dependencies for the Avro Java generated code.
avro_rev = '1.8.2'
jar_library(
name = 'avro-java-runtime',
jars = [
jar(org='org.apache.avro', name='avro', rev=avro_rev),
jar(org='org.apache.avro', name='avro-ipc', rev=avro_rev),
],
)