[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 <dhawalkapil@gmail.com>
This commit is contained in:
panos-kakos
2023-02-16 17:57:31 +02:00
committed by GitHub
parent 452d3fdddb
commit d604623892
4 changed files with 32 additions and 25 deletions

View File

@@ -39,12 +39,19 @@
<artifactId>gt-swing</artifactId>
<version>${geotools-swing.version}</version>
</dependency>
<dependency>
<groupId>org.locationtech.jts</groupId>
<artifactId>jts-core</artifactId>
<version>1.19.0</version>
</dependency>
</dependencies>
<properties>
<geotools.version>15.2</geotools.version>
<geotools-swing.version>15.2</geotools-swing.version>
<geotools-shapefile.version>15.2</geotools-shapefile.version>
<geotools.version>28.1</geotools.version>
<geotools-swing.version>28.1</geotools-swing.version>
<geotools-shapefile.version>28.1</geotools-shapefile.version>
</properties>
</project>

View File

@@ -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");