forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.tools
184 lines (154 loc) · 6.43 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# JVM artifacts that Pants itself depends on.
# http://pantsbuild.github.io/dev_tasks.html#jvm-tool-bootstrapping
jar_library(name = 'antlr-3.4',
jars = [jar(org = 'org.antlr', name = 'antlr', rev = '3.4')]
)
jar_library(name = 'antlr-4',
jars = [
jar(org = 'org.antlr', name = 'antlr4', rev = '4.1'),
jar(org = 'org.antlr', name = 'antlr4-runtime', rev = '4.1'),
])
jar_library(name = 'xalan',
jars = [jar(org = 'xalan', name = 'xalan', rev = '2.7.1')])
jar_library(name = 'jmake',
jars = [jar(org = 'org.pantsbuild', name = 'jmake', rev = '1.3.8-10')])
jar_library(name = 'java-compiler',
jars = [
jar(org = 'org.pantsbuild.tools.compiler', name = 'java-compiler', rev = '0.0.1')
])
jar_library(name = 'nailgun-server',
jars = [jar(org = 'com.martiansoftware', name = 'nailgun-server', rev = '0.9.1')])
jar_library(name = 'emma',
jars = [jar(org = 'emma', name = 'emma', rev = '2.1.5320')])
# The Cobertura jar needs all its dependencies when instrumenting code.
jar_library(name = 'cobertura-instrument',
jars = [
jar(
org = 'net.sourceforge.cobertura',
name = 'cobertura',
rev = '2.1.1'),
jar(org = 'org.slf4j', name = 'slf4j-simple', rev = '1.7.5'),
])
# Instrumented code needs cobertura.jar in the classpath to run, but not most of the dependencies.
jar_library(name = 'cobertura-run',
jars = [
jar(
org = 'net.sourceforge.cobertura',
name = 'cobertura',
rev = '2.1.1',
intransitive = True),
jar(org = 'org.slf4j', name = 'slf4j-simple', rev = '1.7.5'),
])
jar_library(name = 'cobertura-report',
jars = [
jar(
org = 'net.sourceforge.cobertura',
name = 'cobertura',
rev = '2.1.1')
])
jar_library(name = 'benchmark-caliper-0.5',
jars = [
# TODO (Eric Ayers) Caliper is old. Add jmh support?
# The caliper tool is shaded, and so shouldn't interfere with Guava 16.
jar(org = 'com.google.caliper', name = 'caliper', rev = '0.5-rc1'),
])
jar_library(name = 'benchmark-java-allocation-instrumenter-2.1',
jars = [
jar(
org = 'com.google.code.java-allocation-instrumenter',
name = 'java-allocation-instrumenter',
rev = '2.1',
intransitive = True,
)])
jar_library(name = 'zinc',
jars = [
jar(org = 'org.pantsbuild', name = 'zinc', rev = '1.0.8')
])
SBT_REV = '0.13.9'
jar_library(name = 'compiler-interface',
jars = [
jar(org = 'com.typesafe.sbt', name = 'compiler-interface', rev = SBT_REV,
classifier='sources',
# We just want the single compiler-interface jar and not its dep on scala-lang
intransitive=True)
])
jar_library(name = 'sbt-interface',
jars = [
jar(org = 'com.typesafe.sbt', name = 'sbt-interface', rev = SBT_REV,
# We just want the single sbt-interface jar and not its dep on scala-lang
intransitive=True)
])
# common rev for all org.scala-lang%* artifacts
SCALA_REV = '2.10.4'
jar_library(name = 'scala-compiler',
jars = [
jar(org = 'org.scala-lang', name = 'scala-compiler', rev = SCALA_REV),
])
jar_library(name = 'scala-library',
jars = [
jar(org = 'org.scala-lang', name = 'scala-library', rev = SCALA_REV),
])
jar_library(name = 'scala-repl',
jars = [
jar(org = 'org.scala-lang', name = 'jline', rev = SCALA_REV, intransitive = True),
],
dependencies = [
':scala-compiler',
':scala-library',
])
jar_library(name = 'scalastyle',
jars = [
jar(org='org.scalastyle', name='scalastyle_2.10', rev='0.3.2')
])
jar_library(name = 'checkstyle',
jars = [
# Pants still officially supports java 6 as a tool; the supported development
# environment for a pants hacker is based on that. As such, we use 6.1.1 here since
# its the last checkstyle version compiled to java 6. See the release notes here:
# http://checkstyle.sourceforge.net/releasenotes.html
jar(org = 'com.puppycrawl.tools', name = 'checkstyle', rev = '6.1.1'),
])
jar_library(name = 'junit',
jars = [
jar(org = 'junit', name = 'junit', rev = '4.12'),
jar(org = 'org.pantsbuild', name = 'junit-runner', rev = '0.0.8'),
])
jar_library(name = 'scrooge-gen',
jars = [
jar(org='com.twitter', name='scrooge-generator_2.10', rev='3.20.0')
# scrooge requires libthrift 0.5.0-1 which is not available on
# the default maven repos. Force scrooge to use the lib thirft used
# by pants: 3rdparty:thrift
.exclude(org = 'org.apache.thrift', name = 'libthrift')
],
dependencies = [
'3rdparty:thrift',
])
jar_library(name = 'scrooge-linter',
jars = [
jar(org='com.twitter', name='scrooge-linter_2.10', rev='3.20.0')
.exclude(org = 'org.apache.thrift', name = 'libthrift')
],
dependencies = [
'3rdparty:thrift',
])
jar_library(name = 'spindle-codegen',
jars = [
jar(org = 'com.foursquare', name = 'spindle-codegen-binary_2.10', rev = '3.0.0-M7'),
])
jar_library(name = 'jar-tool',
jars = [
jar(org = 'org.pantsbuild', name = 'jar-tool', rev = '0.0.5')
])
jar_library(name = 'jarjar',
jars=[
jar(org = 'org.pantsbuild.jarjar', name = 'jarjar', rev = '1.5')
])
jar_library(name = 'wire-runtime',
jars = [
jar(org = 'com.squareup.wire', name = 'wire-runtime', rev = '1.6.0')
])
jar_library(name = 'wire-compiler',
jars = [
jar(org = 'com.squareup.wire', name = 'wire-compiler', rev = '1.6.0')
])