forked from twitter-archive/commons
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pants.ini
381 lines (283 loc) · 8.32 KB
/
pants.ini
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# buildroot, homedir and user are seeded in the config
[DEFAULT]
# Look for these rcfiles - they need not exist on the system
rcfiles: ['/etc/pantsrc', '~/.pants.new.rc']
pants_workdir: %(buildroot)s/.pants.d
pants_supportdir: %(buildroot)s/build-support
pants_cachedir: %(homedir)s/.pants.d
# TODO(John Sirois): Come up with a better public solution.
pants_support_baseurl: http://maven.twttr.com/twitter-commons/pants/build-support
pants_support_fetch_timeout_secs: 30
pants_distdir: %(buildroot)s/dist
pants_pythons: %(buildroot)s/.python
confs: ['default']
max_subprocess_args: 100
info_dir: %(pants_workdir)s/runs
thrift_workdir: %(pants_workdir)s/thrift
scrooge_workdir: %(pants_workdir)s/scrooge
scrooge_legacy_workdir: %(pants_workdir)s/scrooge-legacy
protobuf_workdir: %(pants_workdir)s/protobuf
antlr_workdir: %(pants_workdir)s/antlr
antlr4_workdir: %(pants_workdir)s/antlr4
scala_workdir: %(pants_workdir)s/scalac
scala_compile_profile: scala-compile-2.9.2
java_workdir: %(pants_workdir)s/javac
checkstyle_suppression_files = [
'%(pants_supportdir)s/commons/checkstyle/checkstyle_suppressions.xml'
]
debug_port: 5005
outdir: %(pants_distdir)s
artifact_caches = [
'%(pants_cachedir)s/local_cache',
]
[reporting]
reports_dir: %(pants_workdir)s/reports
reports_assets_dir: %(pants_supportdir)s/reporting/assets
reports_template_dir: %(pants_supportdir)s/reporting/templates
reporting_port: 7268
[goals]
bootstrap_buildfiles: [
# This will pick up the whole top level BUILD file family, including BUILD.commons
'%(buildroot)s/BUILD',
]
[tasks]
build_invalidator: %(pants_workdir)s/build_invalidator
[nailgun]
workdir: %(pants_workdir)s/ng
supportdir: %(pants_supportdir)s/ng
profile: nailgun
args: ['-Xmx2g', '-XX:MaxPermSize=256m']
[idl-extract]
workdir: %(pants_workdir)s/idl
[ivy]
supportdir: %(pants_supportdir)s/ivy
classpath: ['%(supportdir)s/lib/ivy-2.2.0.jar']
ivy_settings: %(supportdir)s/ivysettings.xml
cache_dir: %(homedir)s/.ivy2/twitter-commons
[ivy-profiles]
workdir: %(pants_supportdir)s/profiles
[ivy-resolve]
workdir: %(pants_workdir)s/classpath
nailgun_dir: %(pants_workdir)s/ng/ivy
profile: xalan
transitive: True
args: []
[scrooge-gen]
profile: scrooge-gen
workdir: %(scrooge_workdir)s
supportdir: %(pants_supportdir)s/bin/scrooge
strict: False
verbose: True
version: 3.0.9
java: {
'gen': 'java',
'deps': {
'service': [
'3rdparty:scrooge-runtime',
'3rdparty:finagle-thrift',
'3rdparty:finagle-commons-stats',
'3rdparty:finagle-ostrich4',
],
'structs': []
}
}
scala: {
'gen': 'scala',
'deps': {
'service': [
'3rdparty:scrooge-runtime',
'3rdparty:finagle-thrift',
'3rdparty:finagle-commons-stats',
'3rdparty:finagle-ostrich4',
],
'structs': []
}
}
[scrooge-legacy-gen]
profile: scrooge-legacy-gen
workdir: %(scrooge_legacy_workdir)s
supportdir: %(pants_supportdir)s/bin/scrooge-legacy
strict: False
verbose: True
version: 2.6.0-SNAPSHOT
java: {
'gen': 'java',
'deps': {
'service': [],
'structs': []
}
}
scala: {
'gen': 'scala',
'deps': {
'service': [],
'structs': []
}
}
[thrift-gen]
workdir: %(thrift_workdir)s
supportdir: bin/thrift
strict: False
verbose: False
version: 0.5.0-finagle
java: {
'gen': 'java:hashcode',
'deps': {
'service': ['3rdparty:thrift-0.5.0-finagle'],
'structs': ['3rdparty:thrift-0.5.0']
}
}
python: {
'gen': 'py:newstyle',
'deps': {
'service': ['3rdparty/python:thrift'],
'structs': ['3rdparty/python:thrift']
}
}
[protobuf-gen]
workdir: %(protobuf_workdir)s
supportdir: bin/protobuf
version: 2.4.1
javadeps: ['3rdparty:protobuf-%(version)s']
pythondeps: []
[antlr-gen]
workdir: %(antlr_workdir)s
version: 3.4
antlr_profile: antlr-%(version)s
javadeps: [ '3rdparty:antlr-%(version)s' ]
[antlr4-gen]
workdir: %(antlr4_workdir)s
version: 4.0
antlr_profile: antlr4
javadeps: [ '3rdparty:antlr4' ]
[checkstyle]
workdir: %(pants_workdir)s/checkstyle
profile: checkstyle
nailgun_dir: %(pants_workdir)s/ng/%(profile)s
configuration: %(pants_supportdir)s/checkstyle/coding_style.xml
properties: {
'checkstyle.suppression.files': ','.join(%(checkstyle_suppression_files)s)
}
[java-compile]
workdir: %(java_workdir)s
# jmake setup
#
jmake-profile: jmake
default_to_flatten: True
nailgun_dir: %(pants_workdir)s/ng/%(jmake-profile)s
partition_size_hint: 1000000000
jvm_args: ['-Xmx2G']
args: [
'-C-encoding', '-CUTF-8',
'-C-g',
'-C-Tcolor',
# Don't warn for thrift, scrooge, and protobuf gen-files
'-C-Tnowarnprefixes', '-C%(thrift_workdir)s',
'-C-Tnowarnprefixes', '-C%(scrooge_workdir)s',
'-C-Tnowarnprefixes', '-C%(scrooge_legacy_workdir)s',
'-C-Tnowarnprefixes', '-C%(protobuf_workdir)s',
'-C-Tnowarnprefixes', '-C%(antlr_workdir)s',
'-C-Tnowarnprefixes', '-C%(antlr4_workdir)s',
# Suppress the warning for annotations with no processor - we know there are many of these!
'-C-Tnowarnregex', '-C^(warning: )?No processor claimed any of these annotations: .*'
]
warning_args: [
'-C-Xlint:all', '-C-Xlint:-serial', '-C-Xlint:-path',
'-C-deprecation',
]
no_warning_args: [
'-C-Xlint:none',
'-C-nowarn',
]
# Extra args that will be -C mapped and passed through jmake to javac.
# These can be over-ridden (overwrites) via --compile-javac-args on the command line
javac_args: ['-source', '6', '-target', '6']
compiler-profile: twitter-compiler
[scala-compile]
workdir: %(scala_workdir)s
# TODO(John Sirois): Merge profiles into standard pants deps when ant backend is gone.
compile-profile: %(scala_compile_profile)s
zinc-profile: zinc
scaladeps: ['3rdparty:scala-library']
default_to_flatten: True
nailgun_dir: %(pants_workdir)s/ng/%(compile-profile)s
main: com.typesafe.zinc.Main
args: [
'-encoding', 'UTF-8',
'-g:vars',
]
warning_args: [
'-deprecation',
]
no_warning_args: [
'-nowarn',
]
jvm_args: [ '-Dzinc.analysis.cache.limit=200' ]
[prepare-resources]
workdir: %(pants_workdir)s/resources
[jvm]
debug_args: ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%(debug_port)s']
# TODO(John Sirois): Kill this when commons tests are converted to use explicit test target
# (default is False).
parallel_test_paths: True
[jvm-run]
jvm_args: ['-Xmx1g', '-XX:MaxPermSize=256m']
[scala-repl]
profile: scala-repl-2.9.2
jvm_args: ['-Xmx1g', '-XX:MaxPermSize=256m', '-Dscala.usejavacp=true' ]
main: scala.tools.nsc.MainGenericRunner
[junit-run]
workdir: %(pants_workdir)s/junit
junit_profile: junit
emma_profile: emma
args: [
'-Djava.awt.headless=true', '-Xmx1g', '-XX:MaxPermSize=256m',
# Needed for emma instrumenter to work against classfiles generated by java 7 compilers
'-XX:-UseSplitVerifier'
]
[specs-run]
workdir: %(pants_workdir)s/specs
profile: scala-specs-2.9.2
args: ['-Xmx1g', '-XX:MaxPermSize=256m']
[benchmark-run]
profile: benchmark-caliper-0.5
agent_profile: benchmark-java-allocation-instrumenter-2.1
args: ['-Xmx1g', '-XX:MaxPermSize=256m']
[markdown-to-html]
workdir: %(pants_workdir)s/markdown
code-style: friendly
extensions: ['.md', '.markdown']
[jar-create]
workdir: %(pants_workdir)s/jars
[binary-create]
[args-resource-mapper]
classdirs: [ '%(java_workdir)s/classes', '%(scala_workdir)s' ]
[bundle-create]
[ide]
workdir: %(pants_workdir)s/ide
classes_conf: default
sources_conf: sources
extra_jvm_source_paths = []
extra_jvm_test_paths = ['tests/resources']
python_source_paths: ['src/python']
python_test_paths: ['tests/python']
python_lib_paths: ['3rdparty/python']
[provides]
workdir: %(pants_workdir)s/provides
[idea]
scala_maximum_heap_size_mb: 1024
java_maximum_heap_size_mb: 1024
[python-setup]
artifact_cache: %(pants_workdir)s/python/artifacts
bootstrap_cache: %(pants_workdir)s/python/pip
download_cache: %(pants_workdir)s/python/downloads
install_cache: %(pants_workdir)s/python/eggs
virtualenv_target: %(bootstrap_cache)s/virtualenv-1.7.1.2
virtualenv_urls: ['https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.7.1.2.tar.gz']
bootstrap_packages: ['pip', 'pystache']
platforms: ['current']
[python-repos]
repos: [
'https://raw.github.com/twitter/commons/binaries/pants/third_party/python/dist/index.html']
indices: ['https://pypi.python.org']
allow_pypi: True