forked from twitter-archive/commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pants.ini
213 lines (166 loc) · 5.44 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
; All of the following are seeded with defaults in the config
; user: the current user
; homedir: the current user's home directory
; buildroot: the root of this repo
; pants_bootstrapdir: the global pants scratch space primarily used for caches
; pants_supportdir: pants support files for this repo go here; for example: ivysettings.xml
; pants_distdir: user visible artifacts for this repo go here
; pants_workdir: the scratch space used to for live builds in this repo
[DEFAULT]
pants_support_baseurls = [
"https://dl.bintray.com/pantsbuild/bin/build-support"
]
pants_support_fetch_timeout_secs: 30
# Enable our own custom loose-source plugins.
pythonpath: [
"%(buildroot)s/pants-plugins/src/python",
]
# TODO(John Sirois): Revert to 100 when jar-tool is upgaded past 0.1.9 - currently this just
# avoids passing the jar-tool an @arg-file arg which 0.1.7 does not understand.
# see: https://github.com/twitter/commons/issues/361
max_subprocess_args: 1000
checkstyle_suppression_files = [
'%(pants_supportdir)s/commons/checkstyle/checkstyle_suppressions.xml'
]
debug_port: 5005
outdir: %(pants_distdir)s
read_artifact_caches: []
write_artifact_caches: []
; Mixed into all cache keys. Bump this to invalidate all existing artifacts.
; Note: If you want to experiment with this locally without affecting artifacts
; read by all, change it to some other string, e.g., <number>-<your username>.
cache_key_gen_version: '100'
jvm_options: ['-Xmx1g', '-XX:MaxPermSize=256m']
# For [idea] and [eclipse] sections
python_source_paths: ['src/python']
python_test_paths: ['tests/python']
python_lib_paths: ['3rdparty/python']
[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
[ivy]
ivy_settings: %(pants_supportdir)s/ivy/ivysettings.xml
cache_dir: %(homedir)s/.ivy2/twitter-commons
[gen.scrooge]
service_deps: {
'java': [
'3rdparty/jvm/commons-lang',
'3rdparty/jvm/com/twitter:finagle-thrift',
'3rdparty/jvm/org/slf4j:slf4j-api',
'3rdparty/jvm/com/twitter:util-core',
],
'scala': [
'3rdparty/jvm/com/twitter:scrooge-core',
'3rdparty/jvm/com/twitter:finagle-thrift',
'3rdparty/jvm/com/twitter:util-core',
]
}
structs_deps: {
'java': [
'3rdparty/jvm/commons-lang',
'3rdparty/jvm/org/apache/thrift',
],
'scala': [
'3rdparty/jvm/com/twitter:scrooge-core',
'3rdparty/jvm/org/apache/thrift',
]
}
strict: False
verbose: True
[gen.thrift]
java: {
'gen': 'java:hashcode',
'deps': {
'service': ['3rdparty/jvm/org/apache/thrift:thrift-0.5.0-finagle'],
'structs': ['3rdparty/jvm/org/apache/thrift:thrift-0.5.0']
}
}
python: {
'gen': 'py:new_style',
'deps': {
'service': ['3rdparty/python:thrift'],
'structs': ['3rdparty/python:thrift']
}
}
supportdir: bin/thrift
version: 0.5.0-finagle
[gen.protoc]
supportdir: bin/protobuf
version: 2.4.1
javadeps: ['3rdparty/jvm/com/google/protobuf:protobuf-%(version)s']
[compile.checkstyle]
configuration: %(pants_supportdir)s/checkstyle/coding_style.xml
properties: {
'checkstyle.suppression.files': ','.join(%(checkstyle_suppression_files)s)
}
[compile.scalastyle]
config: %(buildroot)s/build-support/scalastyle/scalastyle_config.xml
; TODO(John Sirois): The excludes are currently global for all scala files but
; they should be trimmed back or eliminated when scalastyle is restricted to
; non code-gen targets: https://jira.twitter.biz/browse/AWESOME-6870
excludes: %(buildroot)s/build-support/scalastyle/excludes.txt
[compile.java]
partition_size_hint: 1000000000
jvm_options: ['-Xmx2G']
warning_args: [
'-C-Xlint:all', '-C-Xlint:-serial', '-C-Xlint:-path',
'-C-deprecation',
]
no_warning_args: [
'-C-Xlint:none',
'-C-nowarn',
]
source: 6
target: 6
args: [
'-C-encoding', '-CUTF-8',
'-C-g',
'-C-Tcolor',
# 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: .*'
]
[compile.scala]
jvm_options: ['-Xmx2g', '-XX:MaxPermSize=256m', '-Dzinc.analysis.cache.limit=0']
warning_args: [
'-S-deprecation',
'-S-unchecked',
]
no_warning_args: [
'-S-nowarn',
]
args: [
'-S-encoding', '-SUTF-8',
'-S-g:vars',
]
[jvm]
debug_args: ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=%(debug_port)s']
[repl.scala]
jvm_options: ['-Xmx1g', '-XX:MaxPermSize=256m', '-Dscala.usejavacp=true']
[test.junit]
jvm_options: [
'-Djava.awt.headless=true', '-Xmx1g', '-XX:MaxPermSize=256m',
# Needed for emma instrumenter to work against classfiles generated by java 7 compilers
'-XX:-UseSplitVerifier'
]
[idea]
scala_maximum_heap_size_mb: 1024
java_maximum_heap_size_mb: 1024
[python-setup]
# We only support commons python code running under 2.7 for now with 3.3+ support to be added later.
interpreter_requirement: CPython>=2.7,<3
[python-repos]
repos: [
'https://raw.github.com/twitter/commons/binaries/pants/third_party/python/dist/index.html',
'https://raw.github.com/twitter/commons/binaries/pants/third_party/python/index.html']
indexes: ['https://pypi.python.org/simple/']
[backends]
packages: [
'pants.contrib.scrooge',
'twitter.common.pants.jvm.args',
'twitter.common.pants.jvm.extras',
'twitter.common.pants.python.commons',
]