Upgrade to 3.0 build parent and Spring Data Commons.

Remove JodaTime dependency as it's not supported anymore.
This commit is contained in:
Oliver Drotbohm
2021-09-20 23:13:21 +02:00
parent 3966ce83e5
commit a8e22616d5
4 changed files with 2 additions and 12 deletions

View File

@@ -13,7 +13,7 @@
<parent>
<groupId>org.springframework.data.build</groupId>
<artifactId>spring-data-parent</artifactId>
<version>2.6.0-SNAPSHOT</version>
<version>3.0.0-SNAPSHOT</version>
<relativePath/>
</parent>
@@ -28,7 +28,7 @@
<project.type>multi</project.type>
<dist.id>spring-data-rest</dist.id>
<springdata.commons>2.6.0-SNAPSHOT</springdata.commons>
<springdata.commons>3.0.0-SNAPSHOT</springdata.commons>
<springdata.jpa>2.6.0-SNAPSHOT</springdata.jpa>
<springdata.mongodb>3.3.0-SNAPSHOT</springdata.mongodb>
<springdata.geode>2.6.0-SNAPSHOT</springdata.geode>

View File

@@ -59,13 +59,6 @@
<version>${querydsl}</version>
</dependency>
<dependency>
<groupId>joda-time</groupId>
<artifactId>joda-time</artifactId>
<version>${jodatime}</version>
<optional>true</optional>
</dependency>
</dependencies>
<build>

View File

@@ -48,7 +48,6 @@ public class User {
public Gender gender;
public @ReadOnlyProperty EmailAddress email;
public LocalDateTime java8DateTime;
public org.joda.time.LocalDateTime jodaDateTime;
public TypeWithPattern pattern;
public @DBRef(lazy = true) List<User> colleagues;
public @DBRef(lazy = true) User manager;

View File

@@ -128,8 +128,6 @@ class PersistentEntityToJsonSchemaConverterUnitTests {
new Constraint("$.definitions.address.requiredProperties[0]", is("zipCode"), "Lists nested required property"));
constraints.add(new Constraint("$.properties.gender.type", is("string"), "Enums are strings."));
constraints.add(new Constraint("$.properties.gender.enum", is(notNullValue()), "Exposes enum values."));
constraints
.add(new Constraint("$.properties.jodaDateTime.format", is("date-time"), "Exposes JodaTime dates in format."));
constraints
.add(new Constraint("$.properties.java8DateTime.format", is("date-time"), "Exposes Java 8 dates in format."));
constraints.add(new Constraint("$.properties.nicknames.type", is("array"), "Exposes collection of simple types."));