asfgit closed pull request #7293: [FLINK-11144][tests] Make Tests runnable on
Java 9
URL: https://github.com/apache/flink/pull/7293
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/pom.xml b/pom.xml
index 7d19fac97e3..8c568443bd5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -765,6 +765,33 @@ under the License.
</dependency>
</dependencies>
</dependencyManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-shade-plugin</artifactId>
+ <version>3.1.1</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
+ <plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.9</source>
+ <target>1.9</target>
+ <compilerArgs
combine.children="append">
+
<arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg>
+
<arg>--add-exports=java.management/sun.management=ALL-UNNAMED</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</profile>
<profile>
@@ -1346,31 +1373,15 @@ under the License.
<artifactId>maven-checkstyle-plugin</artifactId>
</plugin>
<plugin>
- <!-- just define the Java version to be used
for compiling and plugins -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version><!--$NO-MVN-MAN-VER$-->
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- <!-- The semantics of this option are
reversed, see MCOMPILER-209. -->
-
<useIncrementalCompilation>false</useIncrementalCompilation>
- <compilerArgs>
- <!-- The output of Xlint is not
shown by default, but we activate it for the QA bot
- to be able to get more warnings
-->
- <arg>-Xlint:all</arg>
- <!-- Prevents recompilation due
to missing package-info.class, see MCOMPILER-205 -->
- <arg>-Xpkginfo:always</arg>
- </compilerArgs>
- </configuration>
</plugin>
<!--surefire for unit tests and integration tests-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
- <!-- Do NOT use a version >=2.19.X, as test
cases may get stuck before execution. See SUREFIRE-1255 -->
- <version>2.18.1</version>
+ <version>2.22.1</version>
<configuration>
<forkCount>${flink.forkCount}</forkCount>
<reuseForks>${flink.reuseForks}</reuseForks>
@@ -1546,10 +1557,23 @@ under the License.
</plugin>
</plugins>
- <!-- Plugin configurations for plugins activated in
sub-projects -->
-
<pluginManagement>
<plugins>
+ <plugin>
+
<groupId>org.apache.maven.plugins</groupId>
+
<artifactId>maven-compiler-plugin</artifactId>
+ <version>3.8.0</version>
+ <configuration>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
+ <!-- The semantics of this
option are reversed, see MCOMPILER-209. -->
+
<useIncrementalCompilation>false</useIncrementalCompilation>
+ <compilerArgs>
+ <!-- Prevents
recompilation due to missing package-info.class, see MCOMPILER-205 -->
+
<arg>-Xpkginfo:always</arg>
+ </compilerArgs>
+ </configuration>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services