186 lines
5.9 KiB
XML
186 lines
5.9 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.7.0-SNAPSHOT</version>
|
|
<relativePath>../../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>moshi-kotlin-codegen</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.squareup</groupId>
|
|
<artifactId>kotlinpoet</artifactId>
|
|
<version>0.7.0</version>
|
|
</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>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>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactSet>
|
|
<includes>
|
|
<include>com.squareup:kotlinpoet</include>
|
|
</includes>
|
|
</artifactSet>
|
|
<transformers>
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
|
</transformers>
|
|
<relocations>
|
|
<!-- Repackage KotlinPoet until its API is stable. -->
|
|
<relocation>
|
|
<pattern>com.squareup.kotlinpoet</pattern>
|
|
<shadedPattern>com.squareup.moshi.kotlinpoet</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|