diff --git a/.github/workflows/java-ea.yml b/.github/workflows/java-ea.yml index 3cc488ca7..d9b018bfb 100644 --- a/.github/workflows/java-ea.yml +++ b/.github/workflows/java-ea.yml @@ -17,9 +17,9 @@ jobs: - name: 'Checkout' uses: actions/checkout@v3 - name: 'Set up JDK' - uses: actions/setup-java@v3 + uses: oracle-actions/setup-java@v1 with: - distribution: 'zulu' - java-version: ${{ matrix.java }} + website: jdk.java.net + release: EA - name: 'Test' run: ./mvnw ${MAVEN_ARGS} -Djacoco.skip=true install -DskipDistribution=true diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 54cf0b107..b27dfc075 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - java: [13, 17, 18] + java: [17, 21] name: 'Linux JDK ${{ matrix.java }}' runs-on: ubuntu-latest steps: diff --git a/parent/pom.xml b/parent/pom.xml index 1b2c27741..e3f0d8962 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -25,7 +25,7 @@ 3.4.1 3.2.2 3.1.0 - 5.3.18 + 5.3.31 1.6.0 8.36.1 5.10.1 @@ -576,7 +576,7 @@ org.jacoco jacoco-maven-plugin - 0.8.8 + 0.8.11 org.jvnet.jaxb2.maven2 diff --git a/processor/src/test/java/org/mapstruct/ap/test/conversion/jodatime/JodaConversionTest.java b/processor/src/test/java/org/mapstruct/ap/test/conversion/jodatime/JodaConversionTest.java index 1ab73616d..8574c7a6b 100644 --- a/processor/src/test/java/org/mapstruct/ap/test/conversion/jodatime/JodaConversionTest.java +++ b/processor/src/test/java/org/mapstruct/ap/test/conversion/jodatime/JodaConversionTest.java @@ -14,7 +14,6 @@ import org.joda.time.LocalDate; import org.joda.time.LocalDateTime; import org.joda.time.LocalTime; import org.junit.jupiter.api.condition.EnabledForJreRange; -import org.junit.jupiter.api.condition.EnabledOnJre; import org.junit.jupiter.api.condition.JRE; import org.junitpioneer.jupiter.DefaultLocale; import org.mapstruct.ap.testutil.IssueKey; @@ -72,7 +71,7 @@ public class JodaConversionTest { } @ProcessorTest - @EnabledOnJre(JRE.JAVA_8) + @EnabledForJreRange(min = JRE.JAVA_21) // See https://bugs.openjdk.java.net/browse/JDK-8211262, there is a difference in the default formats on Java 9+ public void testSourceToTargetMappingForStrings() { Source src = new Source(); @@ -93,14 +92,14 @@ public class JodaConversionTest { // and now with default mappings target = SourceTargetMapper.INSTANCE.sourceToTargetDefaultMapping( src ); assertThat( target ).isNotNull(); - assertThat( target.getDateTime() ).isEqualTo( "1. Januar 2014 00:00:00 UTC" ); - assertThat( target.getLocalDateTime() ).isEqualTo( "1. Januar 2014 00:00:00" ); + assertThat( target.getDateTime() ).isEqualTo( "1. Januar 2014, 00:00:00 UTC" ); + assertThat( target.getLocalDateTime() ).isEqualTo( "1. Januar 2014, 00:00:00" ); assertThat( target.getLocalDate() ).isEqualTo( "1. Januar 2014" ); assertThat( target.getLocalTime() ).isEqualTo( "00:00:00" ); } @ProcessorTest - @EnabledForJreRange(min = JRE.JAVA_11) + @EnabledForJreRange(min = JRE.JAVA_11, max = JRE.JAVA_17) // See https://bugs.openjdk.java.net/browse/JDK-8211262, there is a difference in the default formats on Java 9+ public void testSourceToTargetMappingForStringsJdk11() { Source src = new Source();