Skip to content

Commit

Permalink
fix: add autovalue profiles (#26)
Browse files Browse the repository at this point in the history
There are versions of `com.google.auto.value:auto-value` needed when
running on java7 vs java8+, to address this we define profiles that
have jdk based activation criteria.
  • Loading branch information
BenWhitehead authored and chingor13 committed Sep 20, 2019
1 parent 3349cef commit 895bd68
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pom.xml
Expand Up @@ -406,5 +406,43 @@
</plugins>
</build>
</profile>
<profile>
<id>autovalue-java7</id>
<activation>
<jdk>1.7</jdk>
</activation>
<properties>
<autovalue.version>1.4</autovalue.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<version>${autovalue.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<profile>
<id>autovalue-java8</id>
<activation>
<jdk>[1.8,)</jdk>
</activation>
<properties>
<autovalue.version>1.6.6</autovalue.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value</artifactId>
<version>${autovalue.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
</profiles>
</project>

0 comments on commit 895bd68

Please sign in to comment.