<?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"> | |
<parent> | |
<artifactId>dagger-parent</artifactId> | |
<groupId>com.google.dagger</groupId> | |
<version>2.1-SNAPSHOT</version> | |
</parent> | |
<modelVersion>4.0.0</modelVersion> | |
<artifactId>dagger-compiler</artifactId> | |
<name>Dagger Compiler</name> | |
<description>Tools to generate Dagger injection and module adapters from annotated code and validate them.</description> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>default-compile</id> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
<configuration> | |
<annotationProcessors> | |
<annotationProcessor>com.google.auto.value.processor.AutoValueProcessor</annotationProcessor> | |
<annotationProcessor>com.google.auto.service.processor.AutoServiceProcessor</annotationProcessor> | |
</annotationProcessors> | |
</configuration> | |
</execution> | |
<execution> | |
<id>default-test-compile</id> | |
<goals> | |
<goal>testCompile</goal> | |
</goals> | |
<configuration> | |
<annotationProcessors> | |
<annotationProcessor>dagger.internal.codegen.ComponentProcessor</annotationProcessor> | |
</annotationProcessors> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<artifactId>maven-invoker-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>integration-test</id> | |
<goals> | |
<goal>install</goal> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<addTestClassPath>true</addTestClassPath> | |
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> | |
<cloneClean>true</cloneClean> | |
<profiles> | |
<profile>!sonatype-oss-release</profile> | |
</profiles> | |
<pomIncludes> | |
<pomInclude>*/pom.xml</pomInclude> | |
</pomIncludes> | |
<localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath> | |
<filterProperties> | |
<dagger.version>${project.version}</dagger.version> | |
<dagger.groupId>${project.groupId}</dagger.groupId> | |
</filterProperties> | |
<streamLogs>true</streamLogs> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-shade-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals> | |
<goal>shade</goal> | |
</goals> | |
<configuration> | |
<minimizeJar>true</minimizeJar> | |
<artifactSet> | |
<excludes> | |
<exclude>com.google.guava</exclude> | |
<exclude>com.google.auto.service</exclude> | |
<exclude>com.google.auto.value</exclude> | |
<exclude>com.google.dagger:dagger</exclude> | |
<exclude>com.google.dagger:dagger-producers</exclude> | |
<exclude>javax.inject</exclude> | |
</excludes> | |
</artifactSet> | |
<relocations> | |
<relocation> | |
<pattern>com.google.auto.common</pattern> | |
<shadedPattern>dagger.shaded.auto.common</shadedPattern> | |
</relocation> | |
</relocations> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<dependency> | |
<groupId>com.google.dagger</groupId> | |
<artifactId>dagger</artifactId> | |
<version>2.1-SNAPSHOT</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.google.dagger</groupId> | |
<artifactId>dagger-producers</artifactId> | |
<version>2.1-SNAPSHOT</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.google.auto.service</groupId> | |
<artifactId>auto-service</artifactId> | |
<version>1.0-rc2</version> | |
<scope>compile</scope> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
<version>18.0</version> | |
<scope>compile</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.google.auto.value</groupId> | |
<artifactId>auto-value</artifactId> | |
<version>1.0</version> | |
<scope>compile</scope> | |
<optional>true</optional> | |
</dependency> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.11</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>hamcrest-core</artifactId> | |
<groupId>org.hamcrest</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.google.dagger</groupId> | |
<artifactId>dagger</artifactId> | |
<version>2.1-SNAPSHOT</version> | |
<classifier>tests</classifier> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.google.testing.compile</groupId> | |
<artifactId>compile-testing</artifactId> | |
<version>0.7</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>tools</artifactId> | |
<groupId>com.sun</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava-testlib</artifactId> | |
<version>18.0</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>jsr305</artifactId> | |
<groupId>com.google.code.findbugs</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>org.mockito</groupId> | |
<artifactId>mockito-core</artifactId> | |
<version>1.9.5</version> | |
<scope>test</scope> | |
<exclusions> | |
<exclusion> | |
<artifactId>objenesis</artifactId> | |
<groupId>org.objenesis</groupId> | |
</exclusion> | |
<exclusion> | |
<artifactId>hamcrest-core</artifactId> | |
<groupId>org.hamcrest</groupId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<dependency> | |
<groupId>com.google.truth</groupId> | |
<artifactId>truth</artifactId> | |
<version>0.26</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</project> | |