limited-jordan-75746
08/30/2018, 3:46 PMjar_library(name='poi-jars',
jars=[
jar(org='org.apache.poi', name='poi', rev='3.13'),
jar(org='org.apache.poi', name='poi-contrib', rev='3.7-beta3'),
jar(org='org.apache.poi', name='poi-ooxml', rev='3.13'),
],
)
jar_library(name='tika-jars',
jars=[
jar(org='org.apache.tika', name='tika-core', rev='1.3'),
],
)
java_library(name='tika',
dependencies=[
':tika-jars',
],
sources = "placeholders",
excludes = [
exclude('edu.ucar', 'netcdf'),
exclude('org.apache.poi','poi'),
exclude('org.apache.poi','poi-scratchpad'),
exclude('org.apache.poi','poi-ooxml'),
]
)
And then the consuming library like:
scala_library(
name = “my-project”,
sources =
globs("src/main/scala/**/*.scala"),
dependencies = [
'3rdparty/jvm:tika',
'3rdparty/jvm:poi-jars',
'
]
)
limited-jordan-75746
08/30/2018, 3:48 PM./pants compile my-project
I get cannot find symbol
for everything in POI. It looks like that pattern seems to exclude POI completely from my-project
instead of just from the tiki
library.limited-jordan-75746
08/30/2018, 3:48 PMcurved-vase-73456
08/30/2018, 9:33 PMMore subtly, if you have many intermediateHow one can detect which dependencies/3rdparty jars are causing this behavior? I see a message when invoking strict_deps “check for conflicting dependencies with `-Ylog-classpath`” but the resulting output is quite huge and I’m not sure how to see/search for conflicts using it 😕targets between yourjava_library
and yourjvm_binaries
targets (which is normaly the case), simply changing which combination ofjar_library
targets are in the samejava_library
invocation may invalidate the cache and force Pants to recompile them, even if their sources are unchanged. This is because they may resolve different versions of their transitive jar dependencies than the previous time they were compiled, which means their classpaths will be different. Getting a different classpath causes a cache-miss, forcing a recompile. In general recompiling when the classpath changes is the correct thing to do, however this means that unstable transitive dependencies will cause a lot of cache-thrashing. If you have a large repository with a large amount of code, recompiles get expensive../pants
witty-crayon-22786
08/31/2018, 12:26 AMwitty-crayon-22786
08/31/2018, 12:27 AMcurved-vase-73456
08/31/2018, 12:42 AMstrict_deps
approach it’s possible to configure managed_jar_libraries
and/or managed_jar_dependencies
to achieve the same result (avoiding recompilation on changing combination of targets).
So should it be done for every 3rdparty
jar or is there a way to tell which dependency can produce possible conflicts?witty-crayon-22786
08/31/2018, 12:48 AMmanaged_jar_libraries
, so I don't know a lot about it... sorry.curved-vase-73456
08/31/2018, 12:48 AMstrict_deps
?witty-crayon-22786
08/31/2018, 12:56 AMaloof-angle-91616
08/31/2018, 2:18 AMstrict_deps
makes a jvm build significantly easier to understand and maintain, implicit transitive deps are hard for me to follow personallyaloof-angle-91616
08/31/2018, 2:19 AM1.9.0rc2
, which should be the final release candidate for 1.9.0
. i'm sorry for the delay, this was my first time doing such a release (just because people asked about it itc last week)aloof-angle-91616
09/03/2018, 9:33 PMuser
09/04/2018, 6:41 PMenough-analyst-54434
09/04/2018, 7:12 PMcoverage
unstable version publish yesterday (unfortunately, although we pin our direct dep on pytest-cov
, it in-turn lets its coverage
dep float with coverage>=3.7.1
). I'll have a fix up shortly.magnificent-coat-60998
09/04/2018, 8:06 PMgo-env
task?aloof-angle-91616
09/05/2018, 10:13 AMfierce-park-88503
09/05/2018, 1:36 PMpython_tests
? or just any test targets?)average-vr-56795
09/05/2018, 1:42 PM./pants list
takes some flags which may be helpfulaverage-vr-56795
09/05/2018, 1:42 PM./pants list --filter=python_tests ::
average-vr-56795
09/05/2018, 1:42 PMaverage-vr-56795
09/05/2018, 1:44 PM./pants filter --filter-type=python_tests ::
fierce-park-88503
09/05/2018, 6:15 PMwide-energy-11069
09/05/2018, 6:16 PMSQLalchemy
user with the error:
sqlalchemy.exc.NoReferencedTableError: Foreign key associated with column 'part_factory.vendor_id' could not find table 'vendor' with which to generate a foreign key to target column 'id'
wide-energy-11069
09/05/2018, 6:17 PMenough-analyst-54434
09/05/2018, 6:18 PMenough-analyst-54434
09/05/2018, 6:19 PMwide-energy-11069
09/05/2018, 6:19 PM./pants run
works, but building the pex then run the pex does not.enough-analyst-54434
09/05/2018, 6:19 PMwide-energy-11069
09/05/2018, 6:19 PM