Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Java9 support #3425

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ language: java
# This environment is continuously updated as described in https://docs.travis-ci.com/user/build-environment-updates/
dist: trusty
sudo: required
group: edge

jdk:
- oraclejdk8
- oraclejdk9

services:
- postgresql
Expand Down
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -397,3 +397,18 @@ modernizer {
// See https://github.com/andrewgaul/modernizer-maven-plugin for more information on modernizer
failOnViolations = false
}


// enable the use of java.xml.bind
// source: https://discuss.gradle.org/t/gradle-does-not-honor-add-modules-jvm-argument-in-jdk9/20403/2
// via: https://stackoverflow.com/a/43574427/873282
tasks.withType(AbstractCompile) {
if (org.gradle.api.JavaVersion.current().isJava9Compatible()) {
options.compilerArgs += ["--add-modules", "java.xml.bind"]
}
}
tasks.withType(Test) {
if (org.gradle.api.JavaVersion.current().isJava9Compatible()) {
jvmArgs += ["--add-modules", "java.xml.bind"]
}
}