forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.tools
162 lines (135 loc) · 5.79 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
# 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-9')])
jar_library(name = 'java-compiler',
jars = [jar(org = 'com.twitter.common.tools', name = 'java-compiler', rev = '0.0.12')])
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.0-twitter-05'),
jar(org = 'org.slf4j', name = 'slf4j-simple', rev = '1.7.5'),
])
# Instrumented code needs cobertura.jar in the classpath to run, but none of the dependencies.
jar_library(name = 'cobertura-run',
jars = [
jar(
org = 'net.sourceforge.cobertura',
name = 'cobertura',
rev = '2.1.0-twitter-05').intransitive()
])
# The reporting phase does not need asm.
jar_library(name = 'cobertura-report',
jars = [
jar(
org = 'net.sourceforge.cobertura',
name = 'cobertura',
rev = '2.1.0-twitter-05')
.exclude(org = 'org.ow2.asm'),
jar(org = 'org.slf4j', name = 'slf4j-simple', rev = '1.7.5'),
])
jar_library(name = 'benchmark-caliper-0.5',
jars = [
# TODO(Eric Ayers) Caliper is old and breaks with guava 16. Add jmh support?
jar(org = 'com.google.caliper', name = 'caliper', rev = '0.5-rc1')
.exclude(org='com.google.guava', name='guava')
])
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()
])
jar_library(name = 'zinc',
jars = [
jar(org = 'com.typesafe.zinc', name = 'zinc', rev = '0.3.2-M1')
.exclude(org = 'com.martiansoftware', name = 'nailgun-server')
.exclude(org = 'org.ensime', name = 'ensime-sbt-cmd')
])
# 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-specs',
jars = [
jar(org = 'org.scala-tools.testing', name = 'specs_2.10.3', rev = '1.6.9'),
jar(org = 'com.twitter.common', name = 'specs-testing', rev = '0.0.6')
],
dependencies = [
':scala-library',
])
jar_library(name = 'scala-repl',
jars = [
jar(org = 'org.scala-lang', name = 'jline', rev = SCALA_REV).intransitive(),
],
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 = [
jar(org = 'com.puppycrawl.tools', name = 'checkstyle', rev = '5.6'),
])
jar_library(name = 'junit',
jars = [
jar(org = 'junit', name = 'junit-dep', rev = '4.10'),
jar(org = 'org.hamcrest', name = 'hamcrest-core', rev = '1.2'),
jar(org = 'com.twitter.common', name = 'junit-runner', rev = '0.0.41'),
# TODO(Eric Ayers) We need to rename/shade the dependencies of junit-runner
# or use a custom classloader for junit runner to permanently
# address guava version conflicts in guava
#
# junit-runner version 0.0.41 uses guava 16.0 by default
# If your user code needs to use a more recent version of guava, you can force
# the version in the next line.
jar(org = 'com.google.guava', name = 'guava', rev = '16.0', force = True),
])
jar_library(name = 'scrooge-gen',
jars = [
jar(org='com.twitter', name='scrooge-generator_2.10', rev='3.16.3')
])
jar_library(name = 'scrooge-linter',
jars = [
jar(org='com.twitter', name='scrooge-linter_2.10', rev='3.16.3')
])
jar_library(name = 'jar-tool',
jars = [
jar(org = 'com.twitter.common', name = 'jar-tool', rev = '0.1.7')
])
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')
])