From db11ca931d130f0fc935c0737d73536845c04dbc Mon Sep 17 00:00:00 2001 From: panos-kakos <102670093+panos-kakos@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:57:31 +0200 Subject: [PATCH] [JAVA-16376] Moved spring-reactive-modules to jdk9-and-above profile (#13470) * [JAVA-16376] Moved spring-reactive-modules to jdk9-and-above profile * [JAVA-16376] Upgraded geotools dependencies and moved module to jdk9-and-above profile * [JAVA-16376] Replaced vividsolutions artifact with locationtech * [JAVA-16376] Moved data-structures to jdk9-and-above profile * [JAVA-16376] Moved deeplearning4j module to jdk9-and-above profile --------- Co-authored-by: Dhawal Kapil --- deeplearning4j/pom.xml | 9 +++++++ geotools/pom.xml | 13 ++++++--- .../java/com/baeldung/geotools/ShapeFile.java | 8 +++--- pom.xml | 27 +++++++------------ 4 files changed, 32 insertions(+), 25 deletions(-) diff --git a/deeplearning4j/pom.xml b/deeplearning4j/pom.xml index c63e67d573..01bac93214 100644 --- a/deeplearning4j/pom.xml +++ b/deeplearning4j/pom.xml @@ -57,11 +57,20 @@ httpclient ${httpclient.version} + + + org.projectlombok + lombok + ${lombok.version} + provided + + 0.9.1 4.3.5 + 1.18.20 \ No newline at end of file diff --git a/geotools/pom.xml b/geotools/pom.xml index 05cae922a4..6edb344c8c 100644 --- a/geotools/pom.xml +++ b/geotools/pom.xml @@ -39,12 +39,19 @@ gt-swing ${geotools-swing.version} + + org.locationtech.jts + jts-core + 1.19.0 + + + - 15.2 - 15.2 - 15.2 + 28.1 + 28.1 + 28.1 \ No newline at end of file diff --git a/geotools/src/main/java/com/baeldung/geotools/ShapeFile.java b/geotools/src/main/java/com/baeldung/geotools/ShapeFile.java index de789918cd..64650fb486 100644 --- a/geotools/src/main/java/com/baeldung/geotools/ShapeFile.java +++ b/geotools/src/main/java/com/baeldung/geotools/ShapeFile.java @@ -1,8 +1,8 @@ package com.baeldung.geotools; -import com.vividsolutions.jts.geom.Coordinate; -import com.vividsolutions.jts.geom.GeometryFactory; -import com.vividsolutions.jts.geom.Point; +import org.locationtech.jts.geom.Coordinate; +import org.locationtech.jts.geom.GeometryFactory; +import org.locationtech.jts.geom.Point; import org.geotools.data.DataUtilities; import org.geotools.data.DefaultTransaction; import org.geotools.data.Transaction; @@ -35,7 +35,7 @@ public class ShapeFile { DefaultFeatureCollection collection = new DefaultFeatureCollection(); - GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null); + GeometryFactory geometryFactory = JTSFactoryFinder.getGeometryFactory(null); SimpleFeatureType TYPE = DataUtilities.createType("Location", "location:Point:srid=4326," + "name:String"); diff --git a/pom.xml b/pom.xml index 0b63defb49..8b395d44f1 100644 --- a/pom.xml +++ b/pom.xml @@ -341,16 +341,9 @@ core-java-modules couchbase custom-pmd - data-structures - deeplearning4j + drools - - - - - geotools - gradle-modules/gradle/maven-to-gradle @@ -470,7 +463,6 @@ server-modules spf4j spring-4 - spring-reactive-modules spring-aop spring-aop-2 spring-batch @@ -618,16 +610,8 @@ core-java-modules couchbase custom-pmd - data-structures - deeplearning4j drools - - - - - geotools - gradle-modules/gradle/maven-to-gradle @@ -739,7 +723,6 @@ server-modules spf4j spring-4 - spring-reactive-modules spring-aop spring-aop-2 spring-batch @@ -940,7 +923,9 @@ core-java-modules/core-java-strings core-java-modules/core-java-httpclient spring-core-6 + data-structures ddd-contexts + deeplearning4j docker-modules apache-httpclient-2 kubernetes-modules/kubernetes-spring @@ -959,11 +944,13 @@ spring-boot-modules/spring-boot-3-native spring-boot-modules/spring-boot-3-observation spring-boot-modules/spring-boot-3-test-pitfalls + spring-reactive-modules spring-swagger-codegen/custom-validations-opeanpi-codegen testing-modules/testing-assertions persistence-modules/fauna lightrun tablesaw + geotools @@ -1145,7 +1132,9 @@ core-java-modules/core-java-strings core-java-modules/core-java-httpclient spring-core-6 + data-structures ddd-contexts + deeplearning4j docker-modules apache-httpclient-2 kubernetes-modules/kubernetes-spring @@ -1164,11 +1153,13 @@ spring-boot-modules/spring-boot-3-native spring-boot-modules/spring-boot-3-observation spring-boot-modules/spring-boot-3-test-pitfalls + spring-reactive-modules spring-swagger-codegen/custom-validations-opeanpi-codegen testing-modules/testing-assertions persistence-modules/fauna lightrun tablesaw + geotools