|
10 | 10 | <maven.compiler.source>11</maven.compiler.source>
|
11 | 11 | <maven.compiler.target>11</maven.compiler.target>
|
12 | 12 | <exec.mainClass>com.mycompany.vertxnettyip6udptester.Tester</exec.mainClass>
|
13 |
| - <vertx.version>4.1.5</vertx.version> |
| 13 | + <vertx.version>4.2.1</vertx.version> |
14 | 14 | <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
|
15 | 15 | <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
|
16 | 16 | <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
|
|
30 | 30 | <version>1.2.3</version>
|
31 | 31 | </dependency>
|
32 | 32 | </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> |
33 | 101 |
|
34 | 102 | <build>
|
35 | 103 |
|
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 | + |
50 | 105 |
|
51 | 106 | <!--
|
52 | 107 | You only need the part below if you want to build your application into a fat executable jar.
|
|
0 commit comments