Skip to content

Commit

Permalink
Build and run tests against JDK 10
Browse files Browse the repository at this point in the history
JDK 10 has been released and it deprecates JDK 9. This allows us to run
our tests in Travis on the latest JDK release.
  • Loading branch information
arteam committed Mar 23, 2018
1 parent 5c5aba4 commit cd73006
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Expand Up @@ -3,6 +3,7 @@ sudo: false
language: java
before_install:
- ulimit -c unlimited -S
- 'wget https://raw.githubusercontent.com/sormuras/bach/master/install-jdk.sh'
script:
- ./mvnw test -B -P code-coverage
- ./mvnw site -pl docs -B
Expand All @@ -21,11 +22,8 @@ matrix:
packages:
- oracle-java8-installer
- os: linux
jdk: oraclejdk9
addons:
apt:
packages:
- oracle-java9-installer
env: JDK='OpenJDK 10'
install: . ./install-jdk.sh -F 10
deploy:
provider: script
script: bash .travis_deploy.sh
Expand Down
10 changes: 5 additions & 5 deletions dropwizard-example/pom.xml
Expand Up @@ -280,7 +280,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.0</version>
<version>0.8.1</version>
<executions>
<execution>
<id>prepare-agent</id>
Expand Down Expand Up @@ -311,13 +311,13 @@
</build>
</profile>
<profile>
<id>jdk9</id>
<id>jdk10</id>
<activation>
<jdk>9</jdk>
<jdk>10</jdk>
</activation>
<properties>
<maven.compiler.source>1.9</maven.compiler.source>
<maven.compiler.target>1.9</maven.compiler.target>
<maven.compiler.source>1.10</maven.compiler.source>
<maven.compiler.target>1.10</maven.compiler.target>
</properties>
<build>
<plugins>
Expand Down
4 changes: 2 additions & 2 deletions dropwizard-http2/pom.xml
Expand Up @@ -97,9 +97,9 @@
see http://www.eclipse.org/jetty/documentation/current/alpn-chapter.html for reference. -->
<profiles>
<profile>
<id>jdk9</id>
<id>jdk10</id>
<activation>
<jdk>9</jdk>
<jdk>10</jdk>
</activation>
<properties>
<argLine>-Duser.language=en -Duser.region=US --add-modules java.xml.bind</argLine>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Expand Up @@ -373,9 +373,9 @@
</build>
</profile>
<profile>
<id>jdk9</id>
<id>jdk10</id>
<activation>
<jdk>9</jdk>
<jdk>10</jdk>
</activation>
<properties>
<argLine>-Duser.language=en -Duser.region=US --add-modules java.xml.bind</argLine>
Expand All @@ -395,14 +395,14 @@
<profile>
<id>code-coverage</id>
<activation>
<jdk>9</jdk>
<jdk>10</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.0</version>
<version>0.8.1</version>
<executions>
<execution>
<id>prepare-agent</id>
Expand Down

0 comments on commit cd73006

Please sign in to comment.