Skip to content

Commit d282666

Browse files
committed
Use 1.7 as the source and target level for compilation
Cucumber-jvm is using some library features that were introduced in Java 7. Setting the compilation explicitly to Java 7 should avoid any unexpected surprises.
1 parent 4c9b6f1 commit d282666

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

openejb/pom.xml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<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/xsd/maven-4.0.0.xsd">
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
<modelVersion>4.0.0</modelVersion>
35

46
<parent>
@@ -33,4 +35,20 @@
3335
<scope>test</scope>
3436
</dependency>
3537
</dependencies>
38+
39+
<!--
40+
Using source level 1.7 in combination with openejb-core results in 'An unknown compilation
41+
error'. Use 1.6 instead and compile up to 1.7 to avoid this problem.
42+
-->
43+
<build>
44+
<plugins>
45+
<plugin>
46+
<groupId>org.apache.maven.plugins</groupId>
47+
<artifactId>maven-compiler-plugin</artifactId>
48+
<configuration>
49+
<source>1.6</source>
50+
</configuration>
51+
</plugin>
52+
</plugins>
53+
</build>
3654
</project>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@
724724
<version>3.6.2</version>
725725
<configuration>
726726
<encoding>UTF-8</encoding>
727-
<source>1.6</source>
728-
<target>1.6</target>
727+
<source>1.7</source>
728+
<target>1.7</target>
729729
<compilerArgument>-Werror</compilerArgument>
730730
</configuration>
731731
</plugin>

0 commit comments

Comments
 (0)