Skip to content

Commit d163b8a

Browse files
author
Nicolai Parlog
committed
Update Maven plugins and use <enablePreview> 🥳
1 parent 9258d47 commit d163b8a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

‎pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.codefx.demo</groupId>
88
<artifactId>java-x</artifactId>
9-
<version>16.0-SNAPSHOT</version>
9+
<version>18.0-SNAPSHOT</version>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -44,14 +44,13 @@
4444
<plugins>
4545
<plugin>
4646
<artifactId>maven-compiler-plugin</artifactId>
47-
<version>3.9.0</version>
47+
<version>3.10.1</version>
4848
<configuration>
49-
<!-- The flag "enable-preview" is needed for preview language features
50-
like switch expressions in Java 12-->
49+
<!-- needed for preview language features (like pattern switches were in Java 18) -->
50+
<enablePreview>true</enablePreview>
5151
<compilerArgs>
5252
<!-- get access to `@ReservedStackAccess` in `ReservedStackAccess` -->
5353
<arg>--add-exports=java.base/jdk.internal.vm.annotation=org.codefx.demo.java_x</arg>
54-
<arg>--enable-preview</arg>
5554
</compilerArgs>
5655
</configuration>
5756
</plugin>
@@ -101,7 +100,7 @@
101100
</plugin>
102101
<plugin>
103102
<artifactId>maven-javadoc-plugin</artifactId>
104-
<version>3.3.1</version>
103+
<version>3.3.2</version>
105104
<configuration>
106105
<sourcepath>src/main/java</sourcepath>
107106
<subpackages>org.codefx.demo.java18.jvm.javadoc</subpackages>
@@ -118,7 +117,7 @@
118117
</plugin>
119118
<plugin>
120119
<artifactId>maven-dependency-plugin</artifactId>
121-
<version>3.2.0</version>
120+
<version>3.3.0</version>
122121
<executions>
123122
<execution>
124123
<id>copy-installed</id>

0 commit comments

Comments
 (0)