Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FLINK-11144][tests] Make Tests runnable on Java 9 #7293

Closed
wants to merge 2 commits into from

Conversation

GJL
Copy link
Member

@GJL GJL commented Dec 12, 2018

What is the purpose of the change

Make tests run on Java 9 by upgrading plugins to minimum supported version for Java 9: https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw

cc: @zentol

Brief change log

  • Upgrade surefire plugin.
  • Upgrade shade plugin.
  • Upgrade compiler plugin.

Verifying this change

This change is already covered by existing tests, such as all tests.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

@GJL GJL requested a review from zentol December 12, 2018 15:13
Copy link
Contributor

@zentol zentol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 with one change.

pom.xml Outdated
@@ -1602,7 +1616,7 @@ under the License.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.1</version>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please move this into the jdk9 profile; I don't have the time right now to verify that the shading still works correctly for all modules.

@zentol zentol self-assigned this Dec 12, 2018
Copy link
Contributor

@zentol zentol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@zentol
Copy link
Contributor

zentol commented Dec 13, 2018

Note that I would propose changing the commit and JIRA title as the current one implies that we've already dealt with all issues preventing tests to complete successfully.

@GJL GJL changed the title [FLINK-11144][tests] Make tests run on Java 9 [FLINK-11144][tests] Make tests runnable on Java 9 Dec 13, 2018
@GJL GJL changed the title [FLINK-11144][tests] Make tests runnable on Java 9 [FLINK-11144][tests] Run Tests on Java 9 Dec 13, 2018
@GJL GJL changed the title [FLINK-11144][tests] Run Tests on Java 9 [FLINK-11144][tests] Make Tests runnable on Java 9 Dec 13, 2018
@GJL
Copy link
Member Author

GJL commented Dec 13, 2018

Thanks for reviewing, @zentol. Merging.

@asfgit asfgit closed this in dcddf0b Dec 13, 2018
tisonkun pushed a commit to tisonkun/flink that referenced this pull request Jan 17, 2019
This enables to run tests on Java 9. However, not all tests are passing at
the moment.

This closes apache#7293.
@jinxing64
Copy link
Contributor

With this change, I failed the building.
Apache Maven 3.5.2
JDK 8

@GJL GJL deleted the FLINK-11144 branch September 3, 2019 15:02
@GJL
Copy link
Member Author

GJL commented Sep 3, 2019

@jinxing64 If you haven't already done so, please create an issue in jira with more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants