Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.26 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.26 KB

kotlin-beans

This library provides integration between Kotlin data classes and Joda Beans serialization.

Using this library allows immutable Kotlin data classes to be serialized and deserialized by Joda Beans by implementing the interface ImmutableData. No other code changes are required.

Note this is not intended to be a full replacement for Joda Beans code generation for classes that will be consumed from Java code. The Kotlin classes will implement the Joda Bean interface, but will not have builders or factory methods that generated Joda Beans do in Java.

The intended use case for this library is for Kotlin immutable data classes that will be consumed in Kotlin code, but must be serialized and deserialized using Joda Beans serialization. The features that Joda Beans adds to Java classes are provided by Kotlin as part of the language.

Adding as a Dependency

Maven

<dependency>
  <groupId>io.github.cjkent.kotlinbeans</groupId>
  <artifactId>kotlin-beans</artifactId>
  <version>0.1</version>
</dependency>

Gradle Groovy DSL

implementation 'io.github.cjkent.kotlinbeans:kotlin-beans:0.1'

Gradle Kotlin DSL

implementation("io.github.cjkent.kotlinbeans:kotlin-beans:0.1")