Skip to content

Commit 895bd68

Browse files
BenWhiteheadchingor13
authored andcommitted
fix: add autovalue profiles (#26)
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.
1 parent 3349cef commit 895bd68

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

pom.xml

+38
Original file line numberDiff line numberDiff line change
@@ -406,5 +406,43 @@
406406
</plugins>
407407
</build>
408408
</profile>
409+
<profile>
410+
<id>autovalue-java7</id>
411+
<activation>
412+
<jdk>1.7</jdk>
413+
</activation>
414+
<properties>
415+
<autovalue.version>1.4</autovalue.version>
416+
</properties>
417+
<dependencyManagement>
418+
<dependencies>
419+
<dependency>
420+
<groupId>com.google.auto.value</groupId>
421+
<artifactId>auto-value</artifactId>
422+
<version>${autovalue.version}</version>
423+
<scope>provided</scope>
424+
</dependency>
425+
</dependencies>
426+
</dependencyManagement>
427+
</profile>
428+
<profile>
429+
<id>autovalue-java8</id>
430+
<activation>
431+
<jdk>[1.8,)</jdk>
432+
</activation>
433+
<properties>
434+
<autovalue.version>1.6.6</autovalue.version>
435+
</properties>
436+
<dependencyManagement>
437+
<dependencies>
438+
<dependency>
439+
<groupId>com.google.auto.value</groupId>
440+
<artifactId>auto-value</artifactId>
441+
<version>${autovalue.version}</version>
442+
<scope>provided</scope>
443+
</dependency>
444+
</dependencies>
445+
</dependencyManagement>
446+
</profile>
409447
</profiles>
410448
</project>

0 commit comments

Comments
 (0)