diff --git a/api/src/test/java/compilation/IsNotCompatibleWithJava8.java b/api/src/test/java/compilation/IsNotCompatibleWithJava8.java new file mode 100644 index 0000000000..1321c6c275 --- /dev/null +++ b/api/src/test/java/compilation/IsNotCompatibleWithJava8.java @@ -0,0 +1,17 @@ +package compilation; + +import static org.junit.Assert.*; + +import org.junit.Test; + +public class IsNotCompatibleWithJava8 { +/* + * This code segment is compatible with Java 11 and not compatible with java 8. It will abort the compilation if the Java context is version 8 + */ + @Test + public void test() { + String value = "This code is compiled in Java 11"; + System.out.println(value.isBlank()); + } + +} diff --git a/installer/pom.xml b/installer/pom.xml index 159b64fab6..790f71479f 100644 --- a/installer/pom.xml +++ b/installer/pom.xml @@ -23,8 +23,6 @@ maven-compiler-plugin - 1.8 - 1.8 UTF-8 @@ -76,7 +74,7 @@ maven-enforcer-plugin - 1.4.1 + 3.2.1 org.apache.maven.plugins diff --git a/installer/webapp/pom.xml b/installer/webapp/pom.xml index 3b6adb57ae..d1fcbb902a 100644 --- a/installer/webapp/pom.xml +++ b/installer/webapp/pom.xml @@ -91,7 +91,7 @@ unpack - + ${project.groupId} ${project.artifactId} diff --git a/pom.xml b/pom.xml index 88f178f935..524a3d80cf 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,7 @@ false / UTF-8 + 11 @@ -255,8 +256,6 @@ org.apache.maven.plugins maven-compiler-plugin - 1.8 - 1.8 UTF-8 -XDcompilePolicy=simple