Marking java8 specifics excluded when compiling with java7

This commit is contained in:
Joakim Erdfelt 2015-04-08 15:10:43 -07:00
parent 08051ba7dd
commit 60d790cbf8
2 changed files with 58 additions and 0 deletions

View File

@ -54,6 +54,39 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java7-only-jetty-server</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.7</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<testExcludes>
<testExclude>org/eclipse/jetty/server/ssl/SslConnectionFactoryTest.java</testExclude>
</testExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>org/eclipse/jetty/server/ssl/SslConnectionFactoryTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>org.eclipse.jetty.toolchain</groupId>

View File

@ -40,6 +40,31 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java7-only-jetty-util</id>
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.7</jdk>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<excludes>
<exclude>org/eclipse/jetty/util/ssl/ExtendedSslContextFactory.java</exclude>
<exclude>org/eclipse/jetty/util/ssl/SniX509ExtendedKeyManager.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>javax.servlet</groupId>