Skip to content

Commit

Permalink
[2.21.x] Upgrading Tika and ThirdParty versions (#5686)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronilovici authored and oconnormi committed Dec 16, 2019
1 parent e39f691 commit c0a173c
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 11 deletions.
1 change: 1 addition & 0 deletions catalog/catalog-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@
<dependency>
<groupId>org.codice.thirdparty</groupId>
<artifactId>tika-bundle</artifactId>
<version>${tika.thirdparty.bundle.version}</version>
</dependency>
<dependency>
<groupId>ddf.catalog.plugin</groupId>
Expand Down
1 change: 1 addition & 0 deletions catalog/spatial/ogc/spatial-ogc-urlresourcereader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<dependency>
<groupId>org.codice.thirdparty</groupId>
<artifactId>tika-bundle</artifactId>
<version>${tika.thirdparty.bundle.version}</version>
</dependency>
<dependency>
<groupId>org.apache.tika</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Optional;
import java.util.concurrent.TimeUnit;
import org.apache.poi.openxml4j.util.Nullable;
import org.apache.poi.xslf.usermodel.XMLSlideShow;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
Expand Down Expand Up @@ -163,7 +163,7 @@ public void testCreatedDate()
ss.createSlide();
Date d = createOneSecondPrecisionDate();

ss.getProperties().getCoreProperties().setCreated(new Nullable<>(d));
ss.getProperties().getCoreProperties().setCreated(Optional.ofNullable(d));
try (ByteArrayOutputStream os = new ByteArrayOutputStream()) {
ss.write(os);

Expand All @@ -184,7 +184,7 @@ public void testModifiedDate()
ss.createSlide();
Date d = createOneSecondPrecisionDate();

ss.getProperties().getCoreProperties().setModified(new Nullable<>(d));
ss.getProperties().getCoreProperties().setModified(Optional.ofNullable(d));
try (ByteArrayOutputStream os = new ByteArrayOutputStream()) {
ss.write(os);

Expand Down
5 changes: 5 additions & 0 deletions catalog/transformer/catalog-transformer-tika-input/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.opengis</groupId>
<artifactId>geoapi</artifactId>
<version>3.0.1</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
17 changes: 13 additions & 4 deletions catalog/transformer/catalog-transformer-video-input/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>ddf.platform.util</groupId>
<artifactId>platform-util</artifactId>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand All @@ -72,6 +73,14 @@
ddf.catalog.transformer.input.video,
ddf.catalog.data.impl.*
</Private-Package>
<Import-Package>
javax.activation;resolution:=optional,
org.bouncycastle.crypto;resolution:=optional,
org.bouncycastle.crypto.digests;resolution:=optional,
org.bouncycastle.crypto.prng;resolution:=optional,
org.bouncycastle.crypto.prng.drbg;resolution:=optional,
*
</Import-Package>
</instructions>
</configuration>
</plugin>
Expand Down
5 changes: 5 additions & 0 deletions platform/metrics/platform-metrics-reporting/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@
com.sun.image.codec.jpeg;resolution:=optional,
org.apache.cxf.jaxrs.utils,
org.joda.convert;resolution:=optional,
org.apache.commons.collections4;resolution:=optional,
org.apache.commons.collections4.bidimap;resolution:=optional,
org.apache.commons.math3.exception;resolution:=optional,
org.apache.commons.math3.linear;resolution:=optional,
org.apache.commons.math3.stat.regression;resolution:=optional,
*
</Import-Package>
<Export-Package />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ private void createSheet(

CellStyle bannerStyle = wb.createCellStyle();
bannerStyle.setFont(headerFont);
bannerStyle.setFillForegroundColor(HSSFColor.PALE_BLUE.index);
bannerStyle.setFillForegroundColor(HSSFColor.HSSFColorPredefined.PALE_BLUE.getIndex());
bannerStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);

int rowCount = 0;
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
<ogc-filter-v_1_1_0-schema.thirdparty.version>1.1.0_5</ogc-filter-v_1_1_0-schema.thirdparty.version>
<pac4j.version>3.8.2</pac4j.version>
<pdfbox.version>2.0.11</pdfbox.version>
<poi.version>3.17</poi.version>
<poi.version>4.0.1</poi.version>
<protobuf.version>3.6.1</protobuf.version>
<proton.version>0.31.0</proton.version>
<qpid-jms.version>0.39.0</qpid-jms.version>
Expand All @@ -310,8 +310,8 @@
<spatial4j.version>0.7</spatial4j.version>
<spring.version>5.1.7.RELEASE</spring.version>
<spring-osgi.version>1.2.1</spring-osgi.version>
<tika.thirdparty.bundle.version>1.18.0_6</tika.thirdparty.bundle.version>
<tika.version>1.18</tika.version>
<tika.thirdparty.bundle.version>1.22.0_1</tika.thirdparty.bundle.version>
<tika.version>1.22</tika.version>
<usng4j.version>0.4</usng4j.version>
<validation.version>1.1.0.Final</validation.version>
<woodstox.core.version>5.3.0</woodstox.core.version>
Expand Down

0 comments on commit c0a173c

Please sign in to comment.