|
55 | 55 | </modules>
|
56 | 56 |
|
57 | 57 | <properties>
|
58 |
| - <java.version>17</java.version> |
| 58 | + <java.version>1.8</java.version> |
| 59 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 60 | + |
| 61 | + <dependencies.version>2.7.16</dependencies.version> |
| 62 | + |
59 | 63 | <commons-compress.version>1.24.0</commons-compress.version>
|
60 | 64 | <commons-lang3.version>3.13.0</commons-lang3.version>
|
61 |
| - <dependencies.version>3.1.4</dependencies.version> |
62 | 65 | <evo-inflector.version>1.3</evo-inflector.version>
|
63 | 66 | <immutables.version>2.10.0-rc1</immutables.version>
|
64 | 67 | <java-semver.version>0.9.0</java-semver.version>
|
65 | 68 | <jjwt.version>0.11.5</jjwt.version>
|
66 |
| - <wire.version>4.9.1</wire.version> |
67 |
| - <mockito.version>5.5.0</mockito.version> |
68 | 69 | <junit-jupiter.version>5.10.0</junit-jupiter.version>
|
| 70 | + <mockito.version>5.5.0</mockito.version> |
69 | 71 | <snakeyaml.version>2.2</snakeyaml.version>
|
70 |
| - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 72 | + <wire.version>2.2.0</wire.version> |
| 73 | + <wire.plugin.version>2.2.0</wire.plugin.version> |
| 74 | + <wire.suffix></wire.suffix> |
71 | 75 | </properties>
|
72 | 76 |
|
73 | 77 | <dependencyManagement>
|
|
87 | 91 | </dependency>
|
88 | 92 | <dependency>
|
89 | 93 | <groupId>com.squareup.wire</groupId>
|
90 |
| - <artifactId>wire-runtime-jvm</artifactId> |
| 94 | + <artifactId>wire-runtime${wire.suffix}</artifactId> |
91 | 95 | <version>${wire.version}</version>
|
92 | 96 | </dependency>
|
93 | 97 | <dependency>
|
|
131 | 135 | <plugin>
|
132 | 136 | <groupId>com.squareup.wire</groupId>
|
133 | 137 | <artifactId>wire-maven-plugin</artifactId>
|
134 |
| - <version>3.0.2</version> |
| 138 | + <version>${wire.plugin.version}</version> |
135 | 139 | <executions>
|
136 | 140 | <execution>
|
137 | 141 | <phase>generate-sources</phase>
|
|
145 | 149 | <groupId>org.apache.maven.plugins</groupId>
|
146 | 150 | <artifactId>maven-compiler-plugin</artifactId>
|
147 | 151 | <version>3.11.0</version>
|
148 |
| - <!-- @see https://github.com/immutables/immutables/issues/1339#issuecomment-1016125673 --> |
149 | 152 | <configuration>
|
150 |
| - <fork>true</fork> |
151 |
| - <compilerArgs combine.children="append"> |
152 |
| - <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
| 153 | + <compilerArgs> |
| 154 | + <arg>-Xlint:all</arg> |
| 155 | + <arg>-Xlint:-options</arg> |
| 156 | + <arg>-Xlint:-processing</arg> |
| 157 | + <arg>-Xlint:-serial</arg> |
153 | 158 | </compilerArgs>
|
154 | 159 | <showWarnings>true</showWarnings>
|
155 | 160 | <source>${java.version}</source>
|
|
180 | 185 | <executions>
|
181 | 186 | <execution>
|
182 | 187 | <id>attach-javadocs</id>
|
183 |
| - <goals> |
| 188 | + <goals> |
184 | 189 | <goal>jar</goal>
|
185 | 190 | </goals>
|
186 | 191 | </execution>
|
|
303 | 308 | <module>test-service-broker</module>
|
304 | 309 | </modules>
|
305 | 310 | </profile>
|
| 311 | + |
| 312 | + <profile> |
| 313 | + <id>jdk-17</id> |
| 314 | + <activation> |
| 315 | + <jdk>17</jdk> |
| 316 | + </activation> |
| 317 | + <properties> |
| 318 | + <java.version>17</java.version> |
| 319 | + <dependencies.version>3.1.4</dependencies.version> |
| 320 | + <wire.version>4.9.1</wire.version> |
| 321 | + <wire.plugin.version>3.0.2</wire.plugin.version> |
| 322 | + <wire.suffix>-jvm</wire.suffix> |
| 323 | + </properties> |
| 324 | + <build> |
| 325 | + <finalName>${project.artifactId}-jdk17-${project.version}</finalName> |
| 326 | + <plugins> |
| 327 | + <plugin> |
| 328 | + <groupId>org.apache.maven.plugins</groupId> |
| 329 | + <artifactId>maven-compiler-plugin</artifactId> |
| 330 | + <version>3.11.0</version> |
| 331 | + <!-- @see https://github.com/immutables/immutables/issues/1339#issuecomment-1016125673 --> |
| 332 | + <configuration> |
| 333 | + <fork>true</fork> |
| 334 | + <compilerArgs combine.children="append"> |
| 335 | + <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
| 336 | + </compilerArgs> |
| 337 | + <showWarnings>true</showWarnings> |
| 338 | + <source>${java.version}</source> |
| 339 | + <target>${java.version}</target> |
| 340 | + </configuration> |
| 341 | + </plugin> |
| 342 | + </plugins> |
| 343 | + </build> |
| 344 | + </profile> |
| 345 | + |
| 346 | + <profile> |
| 347 | + <id>jdk-21</id> |
| 348 | + <activation> |
| 349 | + <jdk>21</jdk> |
| 350 | + </activation> |
| 351 | + <properties> |
| 352 | + <java.version>21</java.version> |
| 353 | + <dependencies.version>3.1.4</dependencies.version> |
| 354 | + <wire.version>4.9.1</wire.version> |
| 355 | + <wire.plugin.version>3.0.2</wire.plugin.version> |
| 356 | + <wire.suffix>-jvm</wire.suffix> |
| 357 | + </properties> |
| 358 | + <build> |
| 359 | + <finalName>${project.artifactId}-jdk21-${project.version}</finalName> |
| 360 | + <plugins> |
| 361 | + <plugin> |
| 362 | + <groupId>org.apache.maven.plugins</groupId> |
| 363 | + <artifactId>maven-compiler-plugin</artifactId> |
| 364 | + <version>3.11.0</version> |
| 365 | + <!-- @see https://github.com/immutables/immutables/issues/1339#issuecomment-1016125673 --> |
| 366 | + <configuration> |
| 367 | + <fork>true</fork> |
| 368 | + <compilerArgs combine.children="append"> |
| 369 | + <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
| 370 | + </compilerArgs> |
| 371 | + <showWarnings>true</showWarnings> |
| 372 | + <source>${java.version}</source> |
| 373 | + <target>${java.version}</target> |
| 374 | + </configuration> |
| 375 | + </plugin> |
| 376 | + </plugins> |
| 377 | + </build> |
| 378 | + </profile> |
306 | 379 | </profiles>
|
307 | 380 |
|
308 | 381 | </project>
|
0 commit comments