File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848
4949 <properties >
5050 <jdk .version>1.7</jdk .version>
51- <maven .compiler.source>1.7 </maven .compiler.source>
52- <maven .compiler.target>1.7 </maven .compiler.target>
51+ <maven .compiler.source>${jdk.version} </maven .compiler.source>
52+ <maven .compiler.target>${jdk.version} </maven .compiler.target>
5353 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
5454 <junit .version>4.12</junit .version>
5555 <hamcrest .version>1.3</hamcrest .version>
375375 <version >1.1</version >
376376 <executions >
377377 <execution >
378+ <id >toolchain</id >
378379 <goals >
379380 <goal >toolchain</goal >
380381 </goals >
395396 <plugin >
396397 <groupId >org.apache.maven.plugins</groupId >
397398 <artifactId >maven-compiler-plugin</artifactId >
399+ <version >${compiler-plugin.version} </version >
398400 <executions >
399-
400- <!-- Java 9 compilation -->
401- <execution >
402- <id >default-compile</id >
403- <configuration >
404- <jdkToolchain >
405- <version >9</version >
406- </jdkToolchain >
407- <!-- compile everything to ensure module-info contains right entries -->
408- <release >9</release >
409- </configuration >
410- </execution >
411-
412- <!-- Java targetVM compilation -->
401+
413402 <execution >
414403 <id >base-compile</id >
415404 <goals >
416405 <goal >compile</goal >
417406 </goals >
418- <!-- recompile everything for target VM except the module-info.java -->
419407 <configuration >
420408 <excludes >
421409 <exclude >module-info.java</exclude >
422410 </excludes >
423411 </configuration >
412+ </execution >
413+
414+ <execution >
415+ <id >default-compile</id >
416+ <configuration >
417+ <jdkToolchain >
418+ <version >9</version >
419+ </jdkToolchain >
420+ <release >9</release >
421+ </configuration >
424422 </execution >
425423 </executions >
424+ <configuration >
425+ <jdkToolchain >
426+ <version >[1.7,9)</version >
427+ </jdkToolchain >
428+ <source >${jdk.version} </source >
429+ <target >${jdk.version} </target >
430+ </configuration >
426431 </plugin >
427-
432+
428433
429434 <plugin >
430435 <groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments