diff --git a/.travis.yml b/.travis.yml index 18fc113f2..89c29645d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: java matrix: include: - - jdk: oraclejdk8 + - jdk: oraclejdk9 script: >- ./gradlew test asciidoctor @@ -16,4 +16,4 @@ deploy: addons: apt: packages: - - oracle-java8-installer + - oracle-java9-installer diff --git a/build.gradle b/build.gradle index 130b8681b..0a4290207 100644 --- a/build.gradle +++ b/build.gradle @@ -9,8 +9,8 @@ plugins { id 'org.asciidoctor.convert' version '1.5.6' } -sourceCompatibility = JavaVersion.VERSION_1_8 -targetCompatibility = JavaVersion.VERSION_1_8 +sourceCompatibility = JavaVersion.VERSION_1_9 +targetCompatibility = JavaVersion.VERSION_1_9 repositories { mavenCentral() @@ -33,6 +33,11 @@ sourceSets { } dependencies { + implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.2.8' + implementation group: 'com.sun.xml.bind', name: 'jaxb-impl', version: '2.3.0' + implementation group: 'com.sun.xml.bind', name: 'jaxb-core', version: '2.3.0' + implementation group: 'javax.activation', name: 'activation', version: '1.1.1' + testImplementation group: 'junit', name: 'junit', version: '4.12' } diff --git a/docs/DeveloperGuide.adoc b/docs/DeveloperGuide.adoc index 291c4fde9..77d72a459 100644 --- a/docs/DeveloperGuide.adoc +++ b/docs/DeveloperGuide.adoc @@ -9,7 +9,7 @@ === Prerequisites -* JDK 8 or later +* JDK 9 or later * IntelliJ IDE === Importing the project into IntelliJ @@ -17,8 +17,8 @@ . Open IntelliJ (if you are not in the welcome screen, click `File` > `Close Project` to close the existing project dialog first) . Set up the correct JDK version .. Click `Configure` > `Project Defaults` > `Project Structure` -.. If JDK 8 is listed in the drop down, select it. If it is not, click `New...` and select the directory where you installed JDK 8. -.. Click `OK`. +.. If JDK 9 is listed in the drop down, select it. If it is not, click `New...` and select the directory where you installed JDK 9 +.. Click `OK` . Click `Import Project` . Locate the `build.gradle` file and select it. Click `OK` . Click `Open as Project` @@ -80,7 +80,7 @@ Use case resumes at step 2. [appendix] == Non Functional Requirements -. Should work on any <> as long as it has Java 8 or higher installed. +. Should work on any <> as long as it has Java 9 or higher installed. . Should be able to hold up to 1000 persons. . Should come with automated unit tests and open source code. . Should favor DOS style commands over Unix-style commands. diff --git a/test/java/seedu/addressbook/common/UtilsTest.java b/test/java/seedu/addressbook/common/UtilsTest.java index 82d57e126..9d14530b7 100644 --- a/test/java/seedu/addressbook/common/UtilsTest.java +++ b/test/java/seedu/addressbook/common/UtilsTest.java @@ -56,8 +56,8 @@ public void elementsAreUnique() throws Exception { assertNotUnique("abc", "abc"); assertNotUnique("abc", "", "abc", "ABC"); assertNotUnique("", "abc", "a", "abc"); - assertNotUnique(1, new Integer(1)); - assertNotUnique(null, 1, new Integer(1)); + assertNotUnique(1, Integer.valueOf(1)); + assertNotUnique(null, 1, Integer.valueOf(1)); assertNotUnique(null, null); assertNotUnique(null, "a", "b", null); }