Skip to content

Commit 43ec1d1

Browse files
java: set maven-compiler-plugin
1 parent 862e025 commit 43ec1d1

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

template/java/pom.xml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13-
</properties>
13+
</properties>
1414

1515
<dependencies>
1616
<dependency>
1717
<groupId>junit</groupId>
1818
<artifactId>junit</artifactId>
1919
<version>3.8.1</version>
2020
<scope>test</scope>
21-
</dependency>
22-
</dependencies>
21+
</dependency>
22+
</dependencies>
2323

2424
<build>
2525
<plugins>
@@ -29,16 +29,25 @@
2929
<version>3.5.0</version>
3030
<configuration>
3131
<mainClass>dev.minizilla.javaproject.App</mainClass>
32-
</configuration>
32+
</configuration>
3333
<executions>
3434
<execution>
3535
<goals>
3636
<goal>java</goal>
37-
</goals>
38-
</execution>
39-
</executions>
40-
</plugin>
41-
</plugins>
42-
</build>
37+
</goals>
38+
</execution>
39+
</executions>
40+
</plugin>
41+
<plugin>
42+
<groupId>org.apache.maven.plugins</groupId>
43+
<artifactId>maven-compiler-plugin</artifactId>
44+
<version>3.13.0</version>
45+
<configuration>
46+
<source>21</source>
47+
<target>21</target>
48+
</configuration>
49+
</plugin>
50+
</plugins>
51+
</build>
4352

44-
</project>
53+
</project>

0 commit comments

Comments
 (0)