Compile tests with Java version 11

This commit is contained in:
Alexey Andreev 2020-03-02 17:19:15 +03:00
parent 6d1c0f037e
commit b71a2b6c65
2 changed files with 17 additions and 1 deletions

View File

@ -72,7 +72,9 @@
<idea.version>2018.2.8</idea.version> <idea.version>2018.2.8</idea.version>
<asm.version>7.2</asm.version> <asm.version>7.2</asm.version>
<java.version>1.8</java.version> <java.version>1.8</java.version>
<java-tests.version>11</java-tests.version>
<rhino.version>1.7.11</rhino.version> <rhino.version>1.7.11</rhino.version>
<maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
<teavm.test.incremental>false</teavm.test.incremental> <teavm.test.incremental>false</teavm.test.incremental>
<teavm.test.threads>1</teavm.test.threads> <teavm.test.threads>1</teavm.test.threads>
@ -217,7 +219,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version> <version>${maven-compiler-plugin.version}</version>
<configuration> <configuration>
<source>${java.version}</source> <source>${java.version}</source>
<target>${java.version}</target> <target>${java.version}</target>

View File

@ -94,6 +94,20 @@
</dependencies> </dependencies>
<build> <build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${java-tests.version}</source>
<target>${java-tests.version}</target>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>