Skip to content

Commit e1da3f8

Browse files
committed
solve JDK 16 build
1 parent 34a56c3 commit e1da3f8

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

powertools-idempotency/pom.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,29 @@
194194
</plugin>
195195
</plugins>
196196
</build>
197+
<profiles>
198+
<profile>
199+
<id>jdk16</id>
200+
<activation>
201+
<jdk>[16,)</jdk>
202+
</activation>
203+
<build>
204+
<plugins>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-surefire-plugin</artifactId>
208+
<version>3.0.0-M5</version>
209+
<configuration>
210+
<argLine>
211+
--add-opens java.base/java.util=ALL-UNNAMED
212+
--add-opens java.base/java.lang=ALL-UNNAMED
213+
</argLine>
214+
</configuration>
215+
</plugin>
216+
</plugins>
217+
</build>
218+
</profile>
219+
</profiles>
197220
<repositories>
198221
<repository>
199222
<id>dynamodb-local-oregon</id>

0 commit comments

Comments
 (0)