Skip to content

Commit

Permalink
Fix MixinForJava8DateTimesTest on Java 17
Browse files Browse the repository at this point in the history
Applies similar solution as:
FasterXML/jackson-modules-base#198
  • Loading branch information
jjohannes committed Feb 10, 2023
1 parent 0d694ee commit 51c4179
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -310,5 +310,25 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<!-- And different set up for JDK 17+ -->
<id>java17+</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M8</version>
<configuration>
<argLine>--add-opens java.base/java.time=ALL-UNNAMED</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 51c4179

Please sign in to comment.