Skip to content

Commit

Permalink
Prepare for release 0.11.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed May 14, 2021
1 parent 8407f0b commit d62f644
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 7 deletions.
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,67 @@
Changelog
=========

Version 0.11.0
-------------

_2021-05-14_

#### Project-wide

* Update Kotlin to `1.5.0`.
* Update deprecated Kotlin stdlib usages during `1.5.0` upgrade.
* Support Java 16.
* Update KotlinPoet to `1.8.0`.
* Small documentation improvements.

#### All KSP artifacts

* Update KSP to `1.5.0-1.0.0-alpha10`.
* Switch to new `SymbolProcessorProvider` APIs.
* Adopt new `Sequence`-based KSP APIs where possible.

#### All metadata-reflect artifacts

* Update kotlinx-metadata to `0.3.0`.

#### moshi-ksp

* **Fix:** Don't fail on annotations that are `typealias`'d.
* **Fix:** Support enum entry values in copied `@JsonQualifier` annotations.
* **Fix:** Support array values in copied `@JsonQualifier` annotations.
* **Fix:** Support array values in copied `@JsonQualifier` annotations.

#### moshi-sealed

* **Enhancement:** sealed interfaces and package-wide sealed classes are fully supported in KSP, kapt, reflect, and
metadata-reflect.
* **Fix:** Make `moshi-adapters` an `api` dependency in `moshi-sealed-runtime`

#### moshi-records-reflect

* `RecordsJsonAdapterFactory` is no longer in preview and now built against JDK 16.
* **New:** A dedicated README page can be found [here](https://github.com/ZacSweers/MoshiX/tree/main/moshi-records-reflect).

```java
final record Message(String value) {
}

public static void main(String[] args) {
Moshi moshi = new Moshi.Builder()
.add(new RecordsJsonAdapterFactory())
.build();

JsonAdapter<Message> messageAdapter = moshi.adapter(Message.class);
}
```

#### moshi-sealed: java-sealed-reflect

* `JavaSealedJsonAdapterFactory` is now built against JDK 16. Note this feature is still in preview.
* **New:** A dedicated README section can be found [here](https://github.com/ZacSweers/MoshiX/tree/main/moshi-sealed#java-sealed-classes-support).

_Thanks to the following contributors for contributing to this release! [@remcomokveld](https://github.com/remcomokveld), [@martinbonnin](https://github.com/martinbonnin), and [@eneim](https://github.com/eneim)

Version 0.10.0
-------------

Expand Down
11 changes: 5 additions & 6 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ Releasing
2. Update the `CHANGELOG.md` for the impending release.
3. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
4. `git tag -a X.Y.Z -m "Version X.Y.Z"` (where X.Y.Z is the new version)
5. `./gradlew clean uploadArchives --no-daemon --no-parallel`
* Make sure to run this with JDK 15
6. `./gradlew closeAndReleaseRepository`
7. Update the `gradle.properties` to the next SNAPSHOT version.
8. `git commit -am "Prepare next development version."`
9. `git push && git push --tags`
5. `./gradlew clean uploadArchives --no-daemon --no-parallel && ./gradlew closeAndReleaseRepository`
* Make sure to run this with JDK 16
6. Update the `gradle.properties` to the next SNAPSHOT version.
7. `git commit -am "Prepare next development version."`
8. `git push && git push --tags`
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED

GROUP=dev.zacsweers.moshix
VERSION_NAME=0.11.0-SNAPSHOT
VERSION_NAME=0.11.0
POM_DESCRIPTION=Moshi Extensions
POM_URL=https://github.com/ZacSweers/MoshiX
POM_SCM_URL=https://github.com/ZacSweers/MoshiX
Expand Down

0 comments on commit d62f644

Please sign in to comment.