Skip to content

Commit b70987a

Browse files
committed
still tinkering to fix Travis build
1 parent c1303f1 commit b70987a

1 file changed

Lines changed: 23 additions & 18 deletions

File tree

pom.xml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
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>
@@ -375,6 +375,7 @@
375375
<version>1.1</version>
376376
<executions>
377377
<execution>
378+
<id>toolchain</id>
378379
<goals>
379380
<goal>toolchain</goal>
380381
</goals>
@@ -395,36 +396,40 @@
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>

0 commit comments

Comments
 (0)