Skip to content

Commit b63d1ab

Browse files
author
tmulle
committed
Updating to 4.2.1 and adding build profiles for JDK8,11 and 17
1 parent eeec6e4 commit b63d1ab

File tree

1 file changed

+70
-15
lines changed

1 file changed

+70
-15
lines changed

pom.xml

Lines changed: 70 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<maven.compiler.source>11</maven.compiler.source>
1111
<maven.compiler.target>11</maven.compiler.target>
1212
<exec.mainClass>com.mycompany.vertxnettyip6udptester.Tester</exec.mainClass>
13-
<vertx.version>4.1.5</vertx.version>
13+
<vertx.version>4.2.1</vertx.version>
1414
<maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
1515
<maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
1616
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
@@ -30,23 +30,78 @@
3030
<version>1.2.3</version>
3131
</dependency>
3232
</dependencies>
33+
<profiles>
34+
<profile>
35+
<id>JDK8</id>
36+
<activation>
37+
<jdk>1.8</jdk>
38+
</activation>
39+
<build>
40+
<pluginManagement>
41+
<plugins>
42+
<plugin>
43+
<groupId>org.apache.maven.plugins</groupId>
44+
<artifactId>maven-compiler-plugin</artifactId>
45+
<configuration>
46+
<target>8</target>
47+
<source>8</source>
48+
<showWarnings>true</showWarnings>
49+
<showDeprecation>true</showDeprecation>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</pluginManagement>
54+
</build>
55+
</profile>
56+
<profile>
57+
<id>JDK11</id>
58+
<activation>
59+
<jdk>11</jdk>
60+
</activation>
61+
<build>
62+
<pluginManagement>
63+
<plugins>
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-compiler-plugin</artifactId>
67+
<configuration>
68+
<target>11</target>
69+
<source>11</source>
70+
<showWarnings>true</showWarnings>
71+
<showDeprecation>true</showDeprecation>
72+
</configuration>
73+
</plugin>
74+
</plugins>
75+
</pluginManagement>
76+
</build>
77+
</profile>
78+
<profile>
79+
<id>JDK17</id>
80+
<activation>
81+
<jdk>17</jdk>
82+
</activation>
83+
<build>
84+
<pluginManagement>
85+
<plugins>
86+
<plugin>
87+
<groupId>org.apache.maven.plugins</groupId>
88+
<artifactId>maven-compiler-plugin</artifactId>
89+
<configuration>
90+
<target>17</target>
91+
<source>17</source>
92+
<showWarnings>true</showWarnings>
93+
<showDeprecation>true</showDeprecation>
94+
</configuration>
95+
</plugin>
96+
</plugins>
97+
</pluginManagement>
98+
</build>
99+
</profile>
100+
</profiles>
33101

34102
<build>
35103

36-
<pluginManagement>
37-
<plugins>
38-
<!-- We specify the Maven compiler plugin as we need to set it to Java 1.8 -->
39-
<plugin>
40-
<artifactId>maven-compiler-plugin</artifactId>
41-
<version>${maven-compiler-plugin.version}</version>
42-
<configuration>
43-
<!-- <source>1.8</source>
44-
<target>1.8</target>-->
45-
<release>11</release>
46-
</configuration>
47-
</plugin>
48-
</plugins>
49-
</pluginManagement>
104+
50105

51106
<!--
52107
You only need the part below if you want to build your application into a fat executable jar.

0 commit comments

Comments
 (0)