-
Notifications
You must be signed in to change notification settings - Fork 73
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
Remove JDK8 support #408
Remove JDK8 support #408
Conversation
Codecov Report
@@ Coverage Diff @@
## main #408 +/- ##
============================================
- Coverage 77.95% 77.71% -0.25%
+ Complexity 4127 4115 -12
============================================
Files 296 296
Lines 17676 17657 -19
Branches 1881 1879 -2
============================================
- Hits 13780 13722 -58
- Misses 2998 3033 +35
- Partials 898 902 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -79,7 +79,7 @@ allprojects { | |||
} | |||
|
|||
plugins.withId('java') { | |||
sourceCompatibility = targetCompatibility = "1.8" | |||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From description
This is needed for 2.0.0, since 2.0.0 is using Apache Lucene 9, which requires JDK 11 or newer
Should we bump to 2.0 to test if this works? Check line 19, we are still using 1.3.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ Yes, definitely do. But you're fine doing it in another PR.
@@ -79,7 +79,7 @@ allprojects { | |||
} | |||
|
|||
plugins.withId('java') { | |||
sourceCompatibility = targetCompatibility = "1.8" | |||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^ Yes, definitely do. But you're fine doing it in another PR.
@ylwu-amzn we'll have changes included in 1.3.0 first, that are changing the same CI file as here. So let's hold off on merging this yet until #431 is ready and merged, and then I'll rebase here. |
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Rebased with latest changes in main. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for making all these changes!
Signed-off-by: Tyler Ohlsen ohltyler@amazon.com
Description
This PR does 3 things to remove JDK8 support:
build.gradle
from Java 8 -> Java 11. This tells the compiler to use a minimum of Java 11 when compiling Java source code (see gradle docs). This is needed for 2.0.0, since 2.0.0 is using Apache Lucene 9, which requires JDK 11 or newer (see release notes).assumeFalse
lines that were added in tests that were failing when running in JDK8 (see Build on JDK 8, revert private build of protostuff. #418)Confirmed it builds and runs successfully, tests pass. Spun up a cluster and did a quick sanity test as well.
Issues Resolved
Resolves #398
Check List
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.