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

Support building on JDK 17 #1430

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

dlvenable
Copy link
Member

@dlvenable dlvenable commented May 26, 2022

Description

Building Data Prepper on JDK 17 failed with an error from Spotless. This PR resolves this by providing a workaround suggested by the Spotless team.

Additionally, update to the latest version of the Spotless Gradle plugin. Older versions prevented the clean task from working correctly for the root build directory. With this update, we can clean up an unnecessary clean task.

Spotless fix:

diffplug/spotless#1179

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…run successfully on JDK 17. This change allows developers to build Data Prepper using JDK 17. Updated the Spotless Gradle plugin, which also allows us to remove an older work-around related to cleaning the project root build directory.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable requested a review from a team as a code owner May 26, 2022 02:21
@codecov-commenter
Copy link

codecov-commenter commented May 26, 2022

Codecov Report

Merging #1430 (b0b1e5f) into main (ebd3e75) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #1430   +/-   ##
=========================================
  Coverage     94.23%   94.23%           
  Complexity     1174     1174           
=========================================
  Files           165      165           
  Lines          3366     3366           
  Branches        275      275           
=========================================
  Hits           3172     3172           
  Misses          138      138           
  Partials         56       56           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebd3e75...b0b1e5f. Read the comment docs.

Copy link
Contributor

@cmanning09 cmanning09 left a comment

Choose a reason for hiding this comment

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

Let's update the developer guide too. It's a little out date now that we support building on JDK17.

https://github.com/opensearch-project/data-prepper/blob/main/docs/developer_guide.md

…th either JDK 11 or 17. Run the Gradle build and performance test builds on JDK 11 and 17 as part of the GitHub Actions CI.

Signed-off-by: David Venable <[email protected]>
@dlvenable
Copy link
Member Author

Let's update the developer guide too. It's a little out date now that we support building on JDK17.

https://github.com/opensearch-project/data-prepper/blob/main/docs/developer_guide.md

Thanks for the comment. I updated the documentation.

@dlvenable
Copy link
Member Author

I also added JDK 17 to two of the CI builds to help ensure that Data Prepper can continue to build against both JDK 11 and 17.

@dlvenable dlvenable merged commit bd389dd into opensearch-project:main Jun 1, 2022
@dlvenable dlvenable deleted the jdk17-spotless-build branch June 9, 2022 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants