From 4cf5b37238f9b280ddc1cd205a697e441c73d9a0 Mon Sep 17 00:00:00 2001 From: Sebastian Baumhekel Date: Wed, 18 May 2022 15:30:53 +0200 Subject: [PATCH] Rework POM to be able to compile and use latest versions of plugins and components, apply fix from https://github.com/wdtinc/mapbox-vector-tile-java/pull/52 to use JTS 1.18. --- pom.xml | 226 ++++++++++++------ .../adapt/jts/MvtReaderTest.java | 3 +- 2 files changed, 154 insertions(+), 75 deletions(-) diff --git a/pom.xml b/pom.xml index 11729f6..a4b50b6 100644 --- a/pom.xml +++ b/pom.xml @@ -36,23 +36,7 @@ scm:git:ssh://github.com:wdtinc/mapbox-vector-tile-java.git https://github.com/wdtinc/mapbox-vector-tile-java - - - UTF-8 - - - - - central - Maven Central - http://repo1.maven.org/maven2/ - - true - warn - - - - + ossrh @@ -64,39 +48,95 @@ + + + UTF-8 + + + + + + com.github.spotbugs + spotbugs-annotations + 4.7.0 + provided + + + org.eclipse.jdt + org.eclipse.jdt.annotation + 2.2.600 + provided + + + + com.google.protobuf + protobuf-java + 3.20.1 + + + + + org.locationtech.jts + jts-core + 1.18.2 + + + + + junit + junit + 4.13.2 + test + + + org.slf4j + slf4j-api + 2.0.0-alpha7 + + + org.slf4j + slf4j-jdk14 + 2.0.0-alpha7 + test + + + org.apache.maven.plugins maven-compiler-plugin - 3.2 + 3.10.1 - 1.8 - 1.8 + 11 + 11 + -Xlint:all org.apache.maven.plugins maven-surefire-plugin - 2.19.1 + 3.0.0-M6 org.apache.maven.plugins maven-source-plugin - 2.4 + 3.2.1 attach-sources - jar + jar-no-fork + + org.apache.maven.plugins maven-javadoc-plugin - 2.10.3 + 3.4.0 true public @@ -108,27 +148,66 @@ jar + + + 11 + + none + false + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0 + + + enforce-maven + + enforce + + + + + 3.6 + + + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.0.0-M2 + org.apache.maven.plugins maven-gpg-plugin - 1.5 - - - sign-artifacts - verify - - sign - - - + 3.0.1 + + + gpg2.exe + + + + org.apache.maven.plugins + maven-release-plugin + 3.0.0-M5 + + true + false + release-sign-artifacts + v@{project.version} + org.sonatype.plugins nexus-staging-maven-plugin - 1.6.7 + 1.6.13 true ossrh @@ -136,45 +215,46 @@ true + + + org.apache.maven.plugins + maven-dependency-plugin + 3.3.0 + + + org.codehaus.mojo + versions-maven-plugin + 2.10.0 + - - - - - org.slf4j - slf4j-api - 1.7.25 - - - - - com.google.protobuf - protobuf-java - 3.5.1 - - - - - org.locationtech.jts - jts-core - 1.15.1 - - - - - junit - junit - 4.12 - test - - - org.slf4j - slf4j-simple - 1.7.25 - test - - - + + + + release-sign-artifacts + + + + org.apache.maven.plugins + maven-gpg-plugin + + + sign-artifacts + verify + + sign + + + + + + + + \ No newline at end of file diff --git a/src/test/java/com/wdtinc/mapbox_vector_tile/adapt/jts/MvtReaderTest.java b/src/test/java/com/wdtinc/mapbox_vector_tile/adapt/jts/MvtReaderTest.java index cc79b4f..555be88 100644 --- a/src/test/java/com/wdtinc/mapbox_vector_tile/adapt/jts/MvtReaderTest.java +++ b/src/test/java/com/wdtinc/mapbox_vector_tile/adapt/jts/MvtReaderTest.java @@ -150,8 +150,7 @@ private static JtsMvt loadMvt(String file, private static GeometryFactory createGeometryFactory() { final PrecisionModel precisionModel = new PrecisionModel(); - final PackedCoordinateSequenceFactory coordinateSequenceFactory = - new PackedCoordinateSequenceFactory(PackedCoordinateSequenceFactory.DOUBLE, NUMBER_OF_DIMENSIONS); + final PackedCoordinateSequenceFactory coordinateSequenceFactory = PackedCoordinateSequenceFactory.DOUBLE_FACTORY; return new GeometryFactory(precisionModel, SRID, coordinateSequenceFactory); } }