Removed: The moshi-ksp artifact has been upstreamed to Moshi itself as is no longer published.
Removed: The moshi-records-reflect artifact has been upstreamed to Moshi itself as is no longer published.
Update to Kotlin 1.6.0
Update to KotlinPoet 1.10.2
0.14.1
Build against JDK 17.
This means that moshi-sealed-java-sealed-reflect's support of sealed classes in Java is now out of preview and requires Java 17 to use.
moshi-records-reflect still targets Java 16 for maximum compatibility.
All other artifacts still target Java 8.
Update Kotlin to 1.5.31
Update KotlinPoet to 1.10.1
0.14.0
Update KSP to 1.5.30-1.0.0 stable!
moshi-sealed-ksp has now been merged into moshi-sealed-codegen. This artifact can be used for both kapt and
ksp.
moshi-ksp is now soft-deprecated and will be fully deprecated once Moshi's next release is out with formal support.
0.13.0
Update Kotlin to 1.5.30.
Update KSP to 1.5.30-1.0.0-beta08.
Enhancement:RecordsJsonAdapterFactory is now aligned with the upstreamed implementation on Moshi itself.
Note that this is now soft-deprecated and will be fully deprecated once Moshi's next release is out with formal support.
This includes using a few more modern language APIs like MethodHandle and better unpacking of different runtime exceptions. Full details can be found in the PR.
Fix: Avoid implicitly converting elements to KotlinPoet in CodeBlocks to avoid noisy logging.
Fix: Improve self-referencing type variables parsing in moshi-ksp (see #125 and #151).
Special thanks to @yigit for contributing to this release!
0.12.2
Fix:RecordsJsonAdapterFactory now properly respects @JsonQualifier annotations on components.
Fix:RecordsJsonAdapterFactory now supports non-public constructors (i.e. package or file-private).
Fix: Crash in moshi-ksp when dealing with generic typealias properties.
0.12.1
Update to KSP 1.5.21-1.0.0-beta07.
Fix: Previously if you had a @JsonClass-annotated Java file with a custom generator, moshi-ksp would error
out anyway due to it not being a Kotlin class. This is now fixed and it will safely ignore these files.
Fix: Generate missing @OptIn(ExperimentalStdLibApi::class) annotations in moshi-sealed when object
adapters are used, as we use Moshi's reified addAdapter extension.
Removed: The moshi-ksp artifact has been upstreamed to Moshi itself as is no longer published.
Removed: The moshi-records-reflect artifact has been upstreamed to Moshi itself as is no longer published.
Update to Kotlin 1.6.0
Update to KotlinPoet 1.10.2
Version 0.14.1
2021-09-21
Build against JDK 17.
This means that moshi-sealed-java-sealed-reflect's support of sealed classes in Java is now out of preview
and requires Java 17 to use.
moshi-records-reflect still targets Java 16 for maximum compatibility.
All other artifacts still target Java 8.
Update Kotlin to 1.5.31
Update KotlinPoet to 1.10.1
Version 0.14.0
2021-09-07
Update KSP to 1.5.30-1.0.0 stable!
moshi-sealed-ksp has now been merged into moshi-sealed-codegen. This artifact can be used for both kapt and
ksp.
moshi-ksp is now soft-deprecated and will be fully deprecated once Moshi's next release is out with formal support.
Version 0.13.0
2021-08-27
Update Kotlin to 1.5.30.
Update KSP to 1.5.30-1.0.0-beta08.
Enhancement:RecordsJsonAdapterFactory is now aligned with the upstreamed implementation on Moshi itself.
Note that this is now soft-deprecated and will be fully deprecated once Moshi's next release is out with formal support.
This includes using a few more modern language APIs like MethodHandle and better unpacking of different runtime exceptions. Full details can be found in the PR.
Fix: Avoid implicitly converting elements to KotlinPoet in CodeBlocks to avoid noisy logging.
Fix: Improve self-referencing type variables parsing in moshi-ksp (see #125 and #151).
Special thanks to @yigit for contributing to this release!
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps moshi-sealed-codegen from 0.12.0 to 0.15.0.
Release notes
Sourced from moshi-sealed-codegen's releases.
Changelog
Sourced from moshi-sealed-codegen's changelog.
... (truncated)
Commits
8e2e0cd
Prepare for release 0.15.0.e33a9cd
Kotlin 1.6 (#163)0612cc5
Spotless9484d76
Prepare next development version.9da68f9
Prepare for release 0.14.1.9297273
Update Kotlinpoet to 1.10 + others (#160)8b080e3
Update to JDK 17 (#159)6ca4173
Add back generated and default to 11 (#158)63c74a1
Spotless66f0d24
Prepare next development version.Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)