mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
KotlinJsonAdapter (#281)
* Add kotlin-module with support for Kotlin data classes * Naming and style changes to KotlinJsonAdapter. Biggest changes: * Attempt to support regular classes and data classes * Avoid parameter hashing when indexing is sufficient for constructor parameters
This commit is contained in:
25
pom.xml
25
pom.xml
@@ -21,14 +21,16 @@
|
||||
<module>moshi</module>
|
||||
<module>examples</module>
|
||||
<module>adapters</module>
|
||||
<module>kotlin</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>1.7</java.version>
|
||||
<kotlin.version>1.1.1</kotlin.version>
|
||||
|
||||
<!-- Dependencies -->
|
||||
<okio.version>1.11.0</okio.version>
|
||||
<okio.version>1.12.0</okio.version>
|
||||
|
||||
<!-- Test Dependencies -->
|
||||
<junit.version>4.12</junit.version>
|
||||
@@ -71,6 +73,22 @@
|
||||
<artifactId>assertj-core</artifactId>
|
||||
<version>${assertj.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-reflect</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-test</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
@@ -100,6 +118,11 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-maven-plugin</artifactId>
|
||||
<version>${kotlin.version}</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
|
||||
|
Reference in New Issue
Block a user