diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ed7837c4c..374faf37f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,27 @@ Change Log ========== +## Version 2.9.0 + +**The minimum supported Java version changes from 6 to 7.** + +* Change target Java version to 7 (#2043) +* Put `module-info.class` into Multi-Release JAR folder (#2013) +* Improve error message when abstract class cannot be constructed (#1814) +* Support EnumMap deserialization (#2071) +* Add LazilyParsedNumber default adapter (#2060) +* Fix JsonReader.hasNext() returning true at end of document (#2061) +* Remove Gradle build support. Build script was outdated and not actively + maintained anymore (#2063) +* Add `GsonBuilder.disableJdkUnsafe()` (#1904) +* Add `UPPER_CASE_WITH_UNDERSCORES` in FieldNamingPolicy (#2024) +* Fix failing to serialize Collection or Map with inaccessible constructor (#1902) +* Improve TreeTypeAdapter thread-safety (#1976) +* Fix `Gson.newJsonWriter` ignoring lenient and HTML-safe setting (#1989) +* Delete unused LinkedHashTreeMap (#1992) +* Make default adapters stricter; improve exception messages (#2000) +* Fix `FieldNamingPolicy.upperCaseFirstLetter` uppercasing non-letter (#2004) + ## Version 2.8.9 * Make OSGi bundle's dependency on `sun.misc` optional (#1993). diff --git a/README.md b/README.md index a9ec0423f8..e9884c61a3 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ There are a few open-source projects that can convert Java objects to JSON. Howe Gradle: ```gradle dependencies { - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.9.0' } ``` @@ -26,7 +26,7 @@ Maven: com.google.code.gson gson - 2.8.9 + 2.9.0 ``` diff --git a/UserGuide.md b/UserGuide.md index 331ef27663..3f13594e48 100644 --- a/UserGuide.md +++ b/UserGuide.md @@ -74,7 +74,7 @@ The Gson instance does not maintain any state while invoking Json operations. So ## Using Gson with Gradle/Android ``` dependencies { - implementation 'com.google.code.gson:gson:2.8.9' + implementation 'com.google.code.gson:gson:2.9.0' } ``` ## Using Gson with Maven @@ -86,7 +86,7 @@ To use Gson with Maven2/3, you can use the Gson version available in Maven Centr com.google.code.gson gson - 2.8.9 + 2.9.0 compile