Skip to content

Commit

Permalink
Merge pull request #16410 from quarkusio/dependabot/maven/org.apache.…
Browse files Browse the repository at this point in the history
…tika-tika-parsers-1.26

Bump tika-parsers from 1.24.1 to 1.26
  • Loading branch information
gsmet authored Apr 10, 2021
2 parents d6cd94a + d1fc1a6 commit 6f0a58a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
16 changes: 14 additions & 2 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
<zookeeper.version>3.5.7</zookeeper.version>
<!-- Scala is used by Kafka so we need to choose a compatible version -->
<scala.version>2.12.13</scala.version>
<tika.version>1.24.1</tika.version>
<tika.version>1.26</tika.version>
<ooxml-schemas.version>1.4</ooxml-schemas.version>
<aws-lambda-java.version>1.2.1</aws-lambda-java.version>
<aws-lambda-java-events.version>3.8.0</aws-lambda-java-events.version>
Expand Down Expand Up @@ -2954,6 +2954,7 @@
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-parsers</artifactId>
<version>${tika.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.cxf</groupId>
Expand All @@ -2963,8 +2964,19 @@
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</exclusion>
<exclusion>
<groupId>javax.activation</groupId>
<artifactId>activation-api</artifactId>
</exclusion>
<exclusion>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</exclusion>
</exclusions>
<version>${tika.version}</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public void registerTikaParsersResources(BuildProducer<NativeImageResourceBuildI

@BuildStep
public void registerPdfBoxResources(BuildProducer<NativeImageResourceDirectoryBuildItem> resource) {
resource.produce(new NativeImageResourceDirectoryBuildItem("org/apache/pdfbox/resources/afm"));
resource.produce(new NativeImageResourceDirectoryBuildItem("org/apache/pdfbox/resources/glyphlist"));
resource.produce(new NativeImageResourceDirectoryBuildItem("org/apache/fontbox/cmap"));
resource.produce(new NativeImageResourceDirectoryBuildItem("org/apache/fontbox/unicode"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ public void testUnresolvableCustomAbbreviation() throws Exception {

@Test
public void testAllSupportedParserNames() throws Exception {
assertEquals(72, getParserNames(null, null).size());
assertEquals(77, getParserNames(null, null).size());
}

@Test
public void testSupportedParserNamesWithTikaConfigPath() throws Exception {
Set<String> names = getParserNames("tika-config.xml", "pdf");
assertEquals(72, names.size());
assertEquals(77, names.size());
}

@Test
Expand Down

0 comments on commit 6f0a58a

Please sign in to comment.