aboutsummaryrefslogtreecommitdiff
path: root/pom.xml
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2018-09-09 16:56:59 -0700
committerLiam Miller-Cushon <cushon@google.com>2018-09-09 16:56:59 -0700
commitb594e4bf91260c72cac0f68fef37972e168674fa (patch)
treeccbc4c4afff71f3fe658d2b60fecae599ff55ced /pom.xml
parentb5ca7dbddc8d13bfaf4f5e7330f525841b00aa4f (diff)
downloadturbine-b594e4bf91260c72cac0f68fef37972e168674fa.tar.gz
Re-enable JDK 8 build
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 209df22..3e37fa9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,7 @@
<properties>
<asm.version>6.2.1</asm.version>
+ <javac.version>9+181-r4173-1</javac.version>
</properties>
<dependencies>
@@ -59,6 +60,12 @@
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>javac</artifactId>
+ <version>${javac.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
@@ -144,4 +151,24 @@
</plugin>
</plugins>
</build>
+ <profiles>
+ <profile>
+ <id>java-8</id>
+ <activation>
+ <jdk>1.8</jdk>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- put javac.jar on bootclasspath when executing tests -->
+ <argLine>-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${javac.version}/javac-${javac.version}.jar</argLine>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>