Moshi-Sealed-Codegen

Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.

License

License

Categories

Categories

Moshi Data JSON
GroupId

GroupId

dev.zacsweers.moshisealed
ArtifactId

ArtifactId

moshi-sealed-codegen
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

Moshi-Sealed-Codegen
Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.
Project URL

Project URL

https://github.com/ZacSweers/moshi-sealed
Source Code Management

Source Code Management

https://github.com/ZacSweers/moshi-sealed

Download moshi-sealed-codegen

How to add to project

<!-- https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-codegen/ -->
<dependency>
    <groupId>dev.zacsweers.moshisealed</groupId>
    <artifactId>moshi-sealed-codegen</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-codegen/
implementation 'dev.zacsweers.moshisealed:moshi-sealed-codegen:0.2.0'
// https://jarcasting.com/artifacts/dev.zacsweers.moshisealed/moshi-sealed-codegen/
implementation ("dev.zacsweers.moshisealed:moshi-sealed-codegen:0.2.0")
'dev.zacsweers.moshisealed:moshi-sealed-codegen:jar:0.2.0'
<dependency org="dev.zacsweers.moshisealed" name="moshi-sealed-codegen" rev="0.2.0">
  <artifact name="moshi-sealed-codegen" type="jar" />
</dependency>
@Grapes(
@Grab(group='dev.zacsweers.moshisealed', module='moshi-sealed-codegen', version='0.2.0')
)
libraryDependencies += "dev.zacsweers.moshisealed" % "moshi-sealed-codegen" % "0.2.0"
[dev.zacsweers.moshisealed/moshi-sealed-codegen "0.2.0"]

Dependencies

runtime (8)

Group / Artifact Type Version
com.google.auto : auto-common jar 0.10
com.squareup : kotlinpoet-metadata jar 1.5.0
com.squareup : kotlinpoet-metadata-specs jar 1.5.0
com.squareup.moshi : moshi-adapters jar 1.9.2
com.squareup.moshi : moshi jar 1.9.2
dev.zacsweers.moshisealed : moshi-sealed-annotations jar 0.2.0
com.squareup : kotlinpoet jar 1.5.0
org.jetbrains.kotlin : kotlin-stdlib-jdk8 jar 1.3.72

Project Modules

There are no modules declared in this project.

MoshiX

Extensions for Moshi

  • moshi-adapters - A collection of custom adapters for Moshi.
  • moshi-ksp - A KSP implementation of Moshi Kotlin Codegen.
  • moshi-metadata-reflect - A kotlinx-metadata based implementation of KotlinJsonAdapterFactory. This allows for reflective Moshi serialization on Kotlin classes without the cost of including kotlin-reflect.
  • moshi-sealed - Reflective and code gen implementations for serializing Kotlin sealed classes via Moshi polymorphic adapters.

Snapshots of the development version are available in Sonatype's snapshots repository.

License

Copyright 2020 Zac Sweers

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Versions

Version
0.2.0
0.1.0