https://pantsbuild.org/ logo
#general
Title
# general
l

limited-jordan-75746

08/30/2018, 3:46 PM
Copy code
jar_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:
Copy code
scala_library(
  name = “my-project”,
  sources =
       globs("src/main/scala/**/*.scala"),
  dependencies = [
          '3rdparty/jvm:tika',
          '3rdparty/jvm:poi-jars',
          '
       ]
)
2 Views