-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix #77 codebase remains Java 8 compatible #79
Conversation
Fixes cdevents#77 Signed-off-by: Andres Almiray <aalmiray@gmail.com>
The single Java9 class is |
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.
I don't really fully understand the changes here - I put some questions, but they are probably silly, feel free to ignore me 🙏
For what I can understand it looks good to me.
@@ -34,7 +35,7 @@ | |||
<repository.url>git@github.com:${project.github.repository}.git</repository.url> | |||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |||
<project.build.outputTimestamp>2024-01-11T15:26:09Z</project.build.outputTimestamp> | |||
<project.build.outputTimestamp>${git.commit.author.time}</project.build.outputTimestamp> |
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.
Nice :)
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.
Sadly this property is overridden with every release and must be reverted to the expression after a release is posted.
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.
I see - perhaps we could include that revert into the release pipeline?
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.
Right. It could be done with a regex. Let me have a look.
@rjalander would you like to review this? |
One quick question, Considering Spinnaker is with Java 11, (https://cdeliveryfdn.slack.com/archives/C030SKZ0F4K/p1707936366892439?thread_ts=1707859639.494349&cid=C030SKZ0F4K), Do we need this PR still to make Java 8 compatible? |
Well, as much as I'd love for everyone to move to recent versions of Java, not everyone has the luxury to do so. With Java 8 having commercial support til 2030 there are still people holding up migration. |
Ok, so good to have a minimum supported version. I think we need an update here https://github.com/cdevents/sdk-java/blob/main/DEVELOPMENT.md#install-tools for Java version. |
There is no need for updating the Java version. Java 9 is still the minimum required because ModiTect needs it. The nice thing about the setup is that the produced bytecode is Java 8 compatible even though the build requires Java 9+ |
🎉 This issue has been resolved in |
Fixes #77