diff --git a/.travis.yml b/.travis.yml index 963e19f6..a9cc6064 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ language: java jdk: - - openjdk7 - - oraclejdk8 + - oraclejdk9 install: mvn -f gson install -DskipTests=true script: mvn -f gson test diff --git a/gson/build.gradle b/gson/build.gradle index 04706bb9..4dd24c1d 100644 --- a/gson/build.gradle +++ b/gson/build.gradle @@ -2,7 +2,7 @@ apply plugin: 'java' apply plugin: 'maven' group = 'com.google.code.gson' -version = '2.8.4-SNAPSHOT' +version = '2.8.6-SNAPSHOT' sourceCompatibility = 1.6 targetCompatibility = 1.6 diff --git a/gson/pom.xml b/gson/pom.xml index b8de7b21..8f233fe7 100644 --- a/gson/pom.xml +++ b/gson/pom.xml @@ -34,7 +34,7 @@ biz.aQute.bnd bnd-maven-plugin - 3.1.0 + 4.0.0 diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java index b19302da..0c455b2a 100644 --- a/gson/src/main/java/com/google/gson/Gson.java +++ b/gson/src/main/java/com/google/gson/Gson.java @@ -705,7 +705,9 @@ public final class Gson { } catch (IOException e) { throw new JsonIOException(e); } catch (AssertionError e) { - throw new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage(), e); + AssertionError error = new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage()); + error.initCause(e); + throw error; } finally { writer.setLenient(oldLenient); writer.setHtmlSafe(oldHtmlSafe); @@ -783,7 +785,9 @@ public final class Gson { } catch (IOException e) { throw new JsonIOException(e); } catch (AssertionError e) { - throw new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage(), e); + AssertionError error = new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage()); + error.initCause(e); + throw error; } finally { writer.setLenient(oldLenient); writer.setHtmlSafe(oldHtmlSafe); @@ -941,7 +945,9 @@ public final class Gson { // TODO(inder): Figure out whether it is indeed right to rethrow this as JsonSyntaxException throw new JsonSyntaxException(e); } catch (AssertionError e) { - throw new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage(), e); + AssertionError error = new AssertionError("AssertionError (GSON " + GsonBuildConfig.VERSION + "): " + e.getMessage()); + error.initCause(e); + throw error; } finally { reader.setLenient(oldLenient); } diff --git a/gson/src/main/java/com.google.gson/module-info.java b/gson/src/main/java/module-info.java similarity index 100% rename from gson/src/main/java/com.google.gson/module-info.java rename to gson/src/main/java/module-info.java diff --git a/pom.xml b/pom.xml index 2a34d0fd..8814acb8 100644 --- a/pom.xml +++ b/pom.xml @@ -63,13 +63,28 @@ org.apache.maven.plugins maven-compiler-plugin - 3.7.0 + 3.8.0 + + + default-compile + + 9 + + + + base-compile + + compile + + + + module-info.java + + + + - - **/module-info.java - - ${java.version} - ${java.version} + 6