Skip to content

Commit 2944f22

Browse files
authored
Merge pull request #437 from nramc/431-feature-switch-geojson-library-from-commons-to-geojson4j
feat: legacy geojson library replaced with geojson4j
2 parents b8e00db + 3607860 commit 2944f22

File tree

11 files changed

+18
-24
lines changed

11 files changed

+18
-24
lines changed

pom.xml

-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
<rewrite-maven-plugin.skip.dry-run-execution>false</rewrite-maven-plugin.skip.dry-run-execution>
3131

3232
<!-- mvn versions:display-property-updates -->
33-
<commons-geojson.version>0.0.38</commons-geojson.version>
3433
<geojson4j.version>1.0.1</geojson4j.version>
3534
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
3635
<rewrite-java-security.version>2.17.1</rewrite-java-security.version>
@@ -103,11 +102,6 @@
103102
<artifactId>spring-boot-starter-mail</artifactId>
104103
</dependency>
105104

106-
<dependency>
107-
<groupId>io.github.nramc.commons</groupId>
108-
<artifactId>commons-geojson</artifactId>
109-
<version>${commons-geojson.version}</version>
110-
</dependency>
111105
<dependency>
112106
<groupId>io.github.nramc</groupId>
113107
<artifactId>geojson4j</artifactId>

src/main/java/com/github/nramc/dev/journey/api/core/journey/JourneyGeoDetails.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.core.journey;
22

3-
import com.github.nramc.commons.geojson.domain.GeoJson;
4-
import com.github.nramc.commons.geojson.domain.Geometry;
3+
import com.github.nramc.geojson.domain.GeoJson;
4+
import com.github.nramc.geojson.domain.Geometry;
55
import jakarta.validation.constraints.NotBlank;
66
import jakarta.validation.constraints.NotNull;
77
import lombok.Builder;

src/main/java/com/github/nramc/dev/journey/api/repository/converters/JacksonBasedReadGeoJsonConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.repository.converters;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.nramc.commons.geojson.domain.GeoJson;
4+
import com.github.nramc.geojson.domain.GeoJson;
55
import org.bson.Document;
66
import org.springframework.core.convert.converter.Converter;
77
import org.springframework.lang.NonNull;

src/main/java/com/github/nramc/dev/journey/api/repository/converters/JacksonBasedReadGeometryConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.repository.converters;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.nramc.commons.geojson.domain.Geometry;
4+
import com.github.nramc.geojson.domain.Geometry;
55
import org.bson.Document;
66
import org.springframework.core.convert.converter.Converter;
77
import org.springframework.lang.NonNull;

src/main/java/com/github/nramc/dev/journey/api/repository/converters/JacksonBasedWriteGeoJsonConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.repository.converters;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.nramc.commons.geojson.domain.GeoJson;
4+
import com.github.nramc.geojson.domain.GeoJson;
55
import org.bson.Document;
66
import org.springframework.core.convert.converter.Converter;
77
import org.springframework.lang.NonNull;

src/main/java/com/github/nramc/dev/journey/api/repository/converters/JacksonBasedWriteGeometryConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.repository.converters;
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
4-
import com.github.nramc.commons.geojson.domain.Geometry;
4+
import com.github.nramc.geojson.domain.Geometry;
55
import org.bson.Document;
66
import org.springframework.core.convert.converter.Converter;
77
import org.springframework.lang.NonNull;

src/main/java/com/github/nramc/dev/journey/api/repository/journey/JourneyGeoDetailsEntity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.repository.journey;
22

3-
import com.github.nramc.commons.geojson.domain.GeoJson;
4-
import com.github.nramc.commons.geojson.domain.Geometry;
3+
import com.github.nramc.geojson.domain.GeoJson;
4+
import com.github.nramc.geojson.domain.Geometry;
55
import lombok.AllArgsConstructor;
66
import lombok.Builder;
77
import lombok.Data;

src/main/java/com/github/nramc/dev/journey/api/repository/journey/converter/JourneyFeatureConverter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package com.github.nramc.dev.journey.api.repository.journey.converter;
22

3-
import com.github.nramc.commons.geojson.domain.Feature;
43
import com.github.nramc.dev.journey.api.repository.journey.JourneyEntity;
54
import com.github.nramc.dev.journey.api.repository.journey.JourneyGeoDetailsEntity;
5+
import com.github.nramc.geojson.domain.Feature;
66
import lombok.experimental.UtilityClass;
77
import org.apache.commons.collections4.map.HashedMap;
88
import org.apache.commons.lang3.StringUtils;

src/main/java/com/github/nramc/dev/journey/api/web/resources/rest/journeys/find/FindPublishedJourneyResource.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package com.github.nramc.dev.journey.api.web.resources.rest.journeys.find;
22

3-
import com.github.nramc.commons.geojson.domain.Feature;
4-
import com.github.nramc.commons.geojson.domain.FeatureCollection;
5-
import com.github.nramc.commons.geojson.domain.GeoJson;
63
import com.github.nramc.dev.journey.api.repository.journey.JourneyEntity;
74
import com.github.nramc.dev.journey.api.repository.journey.JourneyRepository;
85
import com.github.nramc.dev.journey.api.core.journey.security.JourneyAuthorizationManager;
96
import com.github.nramc.dev.journey.api.repository.journey.converter.JourneyFeatureConverter;
7+
import com.github.nramc.geojson.domain.Feature;
8+
import com.github.nramc.geojson.domain.FeatureCollection;
9+
import com.github.nramc.geojson.domain.GeoJson;
1010
import io.swagger.v3.oas.annotations.Operation;
1111
import lombok.RequiredArgsConstructor;
1212
import lombok.extern.slf4j.Slf4j;

src/main/java/com/github/nramc/dev/journey/api/web/resources/rest/journeys/update/geo/UpdateJourneyGeoDetailsRequest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package com.github.nramc.dev.journey.api.web.resources.rest.journeys.update.geo;
22

3-
import com.github.nramc.commons.geojson.domain.GeoJson;
4-
import com.github.nramc.commons.geojson.domain.Geometry;
3+
import com.github.nramc.geojson.domain.GeoJson;
4+
import com.github.nramc.geojson.domain.Geometry;
55
import jakarta.validation.constraints.NotBlank;
66
import jakarta.validation.constraints.NotNull;
77

src/test/java/com/github/nramc/dev/journey/api/web/resources/rest/journeys/JourneyData.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
package com.github.nramc.dev.journey.api.web.resources.rest.journeys;
22

3-
import com.github.nramc.commons.geojson.domain.Feature;
4-
import com.github.nramc.commons.geojson.domain.FeatureCollection;
5-
import com.github.nramc.commons.geojson.domain.Point;
6-
import com.github.nramc.commons.geojson.domain.Position;
73
import com.github.nramc.dev.journey.api.config.security.WithMockAuthenticatedUser;
84
import com.github.nramc.dev.journey.api.core.journey.security.Visibility;
95
import com.github.nramc.dev.journey.api.repository.journey.JourneyEntity;
@@ -12,6 +8,10 @@
128
import com.github.nramc.dev.journey.api.repository.journey.JourneyImagesDetailsEntity;
139
import com.github.nramc.dev.journey.api.repository.journey.JourneyVideoDetailEntity;
1410
import com.github.nramc.dev.journey.api.repository.journey.JourneyVideosDetailsEntity;
11+
import com.github.nramc.geojson.domain.Feature;
12+
import com.github.nramc.geojson.domain.FeatureCollection;
13+
import com.github.nramc.geojson.domain.Point;
14+
import com.github.nramc.geojson.domain.Position;
1515
import lombok.experimental.UtilityClass;
1616

1717
import java.time.LocalDate;

0 commit comments

Comments
 (0)