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

Change from JDK9 to JDK11 #23

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

mdedetrich
Copy link
Contributor

@mdedetrich mdedetrich commented Dec 4, 2023

Currently this project appears to be hardcoded to use JDK 9 as the alternative JDK for multi release, this PR changes this to JDK 11. The main intent behind this change is that JDK 9 is a non LTS release and because of this its actually cumbersome to install on various platforms. This also opens up the project to use github actions for CI.

Due to changes between JDK 9 and JDK 11 there was some additional work that needed to be done to get sbt scripted to pass, notable changes are

  • I had to add a SecurityPolicy policy file as well enable the SecurityManager. While the SecurityManager problems were solved in later versions of sbt, updating this projects sbt version causes the tests to fail and so its best to solve this problem separately. This change will be reverted once the sbt version is updated to a later one.
  • The flags for specifying source and target had to be changed slightly since the format was updated since JDK 11

This PR also adds -SNAPSHOT to the version we can properly iterate changes and test them.

One argument that may pop up is that we are essentially dropping support for JDK9, I think a cleaner/more proper way to solve this would be #24 .

Resolves: #19

@mdedetrich mdedetrich requested review from ktoso and eed3si9n December 4, 2023 07:41
Copy link
Member

Choose a reason for hiding this comment

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

We no longer test using Travis CI, so maybe we should get CI going first?

Copy link
Contributor Author

@mdedetrich mdedetrich Dec 4, 2023

Choose a reason for hiding this comment

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

Actually thats the reason for doing this PR first, I wanted to use stable JDK versions for the github actions CI and currently the entire project is hardcoded to use JDK 9.

Idea is after this PR is merged I will immediately set up github actions CI

@ktoso
Copy link
Member

ktoso commented Dec 4, 2023

Don't wait for me on reviews, I can't contribute to technical discussion without extra permissions which take time, so go ahead with merging when you're happy.

@mdedetrich mdedetrich merged commit 6a09fb0 into sbt:master Dec 6, 2023
@mdedetrich mdedetrich deleted the change-from-jkd9-to-jdk-11 branch December 6, 2023 00:51
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.

JDK 10 and 11 support
3 participants