mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Per https://github.com/Takhion/kotlin-metadata/releases/tag/v1.4.0 Now the compiler is shaded and not prone to breaking on kotlin updates, making it more robust until Jetbrains releases an official API for reading metadata.
157 lines
4.8 KiB
XML
157 lines
4.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>com.squareup.moshi</groupId>
|
|
<artifactId>moshi-parent</artifactId>
|
|
<version>1.6.0-SNAPSHOT</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>moshi-kotlin-codegen-compiler</artifactId>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.squareup.moshi</groupId>
|
|
<artifactId>moshi</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-stdlib</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.auto</groupId>
|
|
<artifactId>auto-common</artifactId>
|
|
<version>0.10</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.auto.service</groupId>
|
|
<artifactId>auto-service</artifactId>
|
|
<version>1.0-rc4</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.squareup</groupId>
|
|
<artifactId>kotlinpoet</artifactId>
|
|
<version>0.7.0</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.assertj</groupId>
|
|
<artifactId>assertj-core</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!--
|
|
The Kotlin compiler must be near the end of the list because its .jar file includes an
|
|
obsolete version of Guava!
|
|
-->
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-compiler-embeddable</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-annotation-processing-embeddable</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>me.eugeniomarletti.kotlin.metadata</groupId>
|
|
<artifactId>kotlin-metadata</artifactId>
|
|
<version>1.4.0</version>
|
|
</dependency>
|
|
<!--
|
|
Though we don't use compile-testing, including it is a convenient way to get tools.jar on the
|
|
classpath. This dependency is required by kapt3.
|
|
-->
|
|
<dependency>
|
|
<groupId>com.google.testing.compile</groupId>
|
|
<artifactId>compile-testing</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
<artifactId>kotlin-maven-plugin</artifactId>
|
|
<version>${kotlin.version}</version>
|
|
<executions>
|
|
<execution>
|
|
<id>kapt</id>
|
|
<goals>
|
|
<goal>kapt</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sourceDirs>
|
|
<sourceDir>src/main/kotlin</sourceDir>
|
|
<sourceDir>src/main/java</sourceDir>
|
|
</sourceDirs>
|
|
<annotationProcessorPaths>
|
|
<annotationProcessorPath>
|
|
<groupId>com.google.auto.service</groupId>
|
|
<artifactId>auto-service</artifactId>
|
|
<version>1.0-rc4</version>
|
|
</annotationProcessorPath>
|
|
</annotationProcessorPaths>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>test-compile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>test-compile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>compile</id>
|
|
<phase>compile</phase>
|
|
<goals>
|
|
<goal>compile</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>testCompile</id>
|
|
<phase>test-compile</phase>
|
|
<goals>
|
|
<goal>testCompile</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>2.21.0</version>
|
|
<configuration>
|
|
<!--
|
|
Suppress the surefire classloader which prevents introspecting the classpath.
|
|
http://maven.apache.org/surefire/maven-surefire-plugin/examples/class-loading.html
|
|
-->
|
|
<useManifestOnlyJar>false</useManifestOnlyJar>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|