|
12 | 12 | <artifactId>vertx-web-templ-jte</artifactId> |
13 | 13 |
|
14 | 14 | <properties> |
15 | | - <jte.version>2.3.2</jte.version> |
| 15 | + <jte.version>3.2.1</jte.version> |
16 | 16 | </properties> |
17 | 17 |
|
18 | 18 | <dependencies> |
|
35 | 35 |
|
36 | 36 | <build> |
37 | 37 | <plugins> |
38 | | - <plugin> |
39 | | - <groupId>org.apache.maven.plugins</groupId> |
40 | | - <artifactId>maven-surefire-plugin</artifactId> |
41 | | - <executions> |
42 | | - <execution> |
43 | | - <id>default-test</id> |
44 | | - <configuration> |
45 | | - <useModulePath>false</useModulePath> |
46 | | - </configuration> |
47 | | - </execution> |
48 | | - <execution> |
49 | | - <id>jpms-test</id> |
50 | | - <goals> |
51 | | - <goal>test</goal> |
52 | | - </goals> |
53 | | - <configuration> |
54 | | - <useModulePath>true</useModulePath> |
55 | | - <includes> |
56 | | - <include>**/JteCompiledTemplateEngineTest.java</include> |
57 | | - </includes> |
58 | | - </configuration> |
59 | | - </execution> |
60 | | - </executions> |
61 | | - </plugin> |
62 | | - <plugin> |
63 | | - <groupId>gg.jte</groupId> |
64 | | - <artifactId>jte-maven-plugin</artifactId> |
65 | | - <version>${jte.version}</version> |
66 | | - <configuration> |
67 | | - <sourceDirectory>${project.basedir}/src/test/templates</sourceDirectory> |
68 | | - <targetDirectory>${project.build.directory}/test-classes</targetDirectory> |
69 | | - <contentType>Html</contentType> |
70 | | - </configuration> |
71 | | - <executions> |
72 | | - <execution> |
73 | | - <phase>process-test-classes</phase> |
74 | | - <goals> |
75 | | - <goal>precompile</goal> |
76 | | - </goals> |
77 | | - </execution> |
78 | | - </executions> |
79 | | - </plugin> |
80 | 38 | <plugin> |
81 | 39 | <groupId>org.apache.maven.plugins</groupId> |
82 | 40 | <artifactId>maven-shade-plugin</artifactId> |
83 | 41 | </plugin> |
84 | 42 | </plugins> |
85 | 43 | </build> |
86 | 44 |
|
| 45 | + <!-- Java 11 => use Maven Toolchain to compile this module with JDK 17 |
| 46 | + The config file .m2/toolchains.xml is needed with this content |
| 47 | +
|
| 48 | + <toolchains> |
| 49 | + <toolchain> |
| 50 | + <type>jdk</type> |
| 51 | + <provides> |
| 52 | + <id>Java17</id> |
| 53 | + <version>17</version> |
| 54 | + </provides> |
| 55 | + <configuration> |
| 56 | + <jdkHome>/PATH/TO/JDK/17</jdkHome> |
| 57 | + </configuration> |
| 58 | + </toolchain> |
| 59 | + </toolchains> |
| 60 | + --> |
| 61 | + <profiles> |
| 62 | + <profile> |
| 63 | + <id>Java11</id> |
| 64 | + <activation> |
| 65 | + <jdk>[11,17)</jdk> |
| 66 | + </activation> |
| 67 | + <build> |
| 68 | + <plugins> |
| 69 | + <plugin> |
| 70 | + <groupId>org.apache.maven.plugins</groupId> |
| 71 | + <artifactId>maven-toolchains-plugin</artifactId> |
| 72 | + <version>1.0</version> |
| 73 | + <executions> |
| 74 | + <execution> |
| 75 | + <phase>validate</phase> |
| 76 | + <goals> |
| 77 | + <goal>toolchain</goal> |
| 78 | + </goals> |
| 79 | + </execution> |
| 80 | + </executions> |
| 81 | + <configuration> |
| 82 | + <toolchains> |
| 83 | + <jdk> |
| 84 | + <version>21</version> |
| 85 | + </jdk> |
| 86 | + </toolchains> |
| 87 | + </configuration> |
| 88 | + </plugin> |
| 89 | + <plugin> |
| 90 | + <groupId>org.apache.maven.plugins</groupId> |
| 91 | + <artifactId>maven-surefire-plugin</artifactId> |
| 92 | + <configuration> |
| 93 | + <skip>true</skip> |
| 94 | + </configuration> |
| 95 | + </plugin> |
| 96 | + </plugins> |
| 97 | + </build> |
| 98 | + </profile> |
| 99 | + <profile> |
| 100 | + <id>Java17</id> |
| 101 | + <activation> |
| 102 | + <jdk>[17,)</jdk> |
| 103 | + </activation> |
| 104 | + <build> |
| 105 | + <plugins> |
| 106 | + <plugin> |
| 107 | + <groupId>gg.jte</groupId> |
| 108 | + <artifactId>jte-maven-plugin</artifactId> |
| 109 | + <version>${jte.version}</version> |
| 110 | + <configuration> |
| 111 | + <sourceDirectory>${project.basedir}/src/test/templates</sourceDirectory> |
| 112 | + <targetDirectory>${project.build.directory}/test-classes</targetDirectory> |
| 113 | + <contentType>Html</contentType> |
| 114 | + </configuration> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <phase>process-test-classes</phase> |
| 118 | + <goals> |
| 119 | + <goal>precompile</goal> |
| 120 | + </goals> |
| 121 | + </execution> |
| 122 | + </executions> |
| 123 | + </plugin> |
| 124 | + <plugin> |
| 125 | + <groupId>org.apache.maven.plugins</groupId> |
| 126 | + <artifactId>maven-surefire-plugin</artifactId> |
| 127 | + <executions> |
| 128 | + <execution> |
| 129 | + <id>default-test</id> |
| 130 | + <configuration> |
| 131 | + <useModulePath>false</useModulePath> |
| 132 | + </configuration> |
| 133 | + </execution> |
| 134 | + <execution> |
| 135 | + <id>jpms-test</id> |
| 136 | + <goals> |
| 137 | + <goal>test</goal> |
| 138 | + </goals> |
| 139 | + <configuration> |
| 140 | + <useModulePath>true</useModulePath> |
| 141 | + <includes> |
| 142 | + <include>**/JteCompiledTemplateEngineTest.java</include> |
| 143 | + </includes> |
| 144 | + </configuration> |
| 145 | + </execution> |
| 146 | + </executions> |
| 147 | + </plugin> |
| 148 | + </plugins> |
| 149 | + </build> |
| 150 | + </profile> |
| 151 | + </profiles> |
| 152 | + |
87 | 153 | </project> |
0 commit comments