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

Add build support for jdk 11 - fixes #2598 #2604

Merged
merged 6 commits into from
Feb 5, 2024

Conversation

hazendaz
Copy link
Member

@hazendaz hazendaz commented Oct 5, 2023

fixes #2598

  • Moved to 'zulu' for builds
  • Run in parallel 4 max
  • Drop Eclipse back to 4.25 to allow jdk 11 on build
  • Drop toolchains back to prior usage to allow jdk 11 (github doesn't have toolchains on jdk 11 installed so they fail with toolchains)
  • Drop spring back to 5.3.30 as project is not on jakartaEE yet

@hazendaz hazendaz self-assigned this Oct 5, 2023
@hazendaz hazendaz marked this pull request as draft October 5, 2023 02:36
@hazendaz
Copy link
Member Author

hazendaz commented Oct 5, 2023

Requires junit 5 changes before this will work. More specifically it requires a single code change to tests as a bad test exists here on java 11 so its disabled specifically on java 11 with code updates for junit 5.

@hazendaz
Copy link
Member Author

hazendaz commented Oct 5, 2023

Toolchains will be added back at later date in same way once we move to requiring java 17. For now this shows a bit more of what we support with obvious caveat that java 8 is not shown here.

@hazendaz hazendaz changed the title Add build support for jdk 11 and 20 Add build support for jdk 11 and 20 - fixes #2598 Oct 5, 2023
@@ -9,39 +9,41 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
java: [11, 17, 20]
Copy link

Choose a reason for hiding this comment

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

why not yet 21 ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's stated in #2598:

Originally I wanted jdk 21 to show case it working due to various user inquires but fact of the matter is gradle doesn't support it yet until 8.4 and still won't with kotlin which means we cannot actually show that. So that is where jdk 20 comes into place.

@hazendaz
Copy link
Member Author

hazendaz commented Oct 5, 2023 via email

@hazendaz
Copy link
Member Author

hazendaz commented Oct 5, 2023 via email

@hazendaz
Copy link
Member Author

hazendaz commented Oct 5, 2023

Why jdk 21 not here...

* What went wrong:
Could not determine the dependencies of task ':buildSrc:compileKotlin'.
> Unknown Kotlin JVM target: 21

@hazendaz
Copy link
Member Author

hazendaz commented Nov 29, 2023

going to partially use this and leave rest to look at later. Not sure why but it wants to download latest components from eclipse. Its been about 2 month since I last worked on this but seem to recall jdk 11 working then, now it does not. Looked over changes not seeing it but don't want to hold up release tonight. Will however peel off parts of this (ie jdk 21 parts).

@JuditKnoll
Copy link
Collaborator

going to partially use this and leave rest to look at later. Not sure why but it wants to download latest components from eclipse. Its been about 2 month since I last worked on this but seem to recall jdk 11 working then, now it does not. Looked over changes not seeing it but don't want to hold up release tonight. Will however peel off parts of this (ie jdk 21 parts).

I think the java version of the downloaded eclipse's code is too new for java 11 (see #2589). We would need eclipse 4.24 or older to support java 11 (see https://wiki.eclipse.org/Eclipse/Installation).

@hazendaz
Copy link
Member Author

hazendaz commented Dec 9, 2023

guessing the issue is osgi related, need to look more into it. Its pulling almost the latest binaries which is the problem.

@hazendaz hazendaz changed the title Add build support for jdk 11 and 20 - fixes #2598 Add build support for jdk 11 - fixes #2598 Dec 18, 2023
Copy link
Contributor

@ThrawnCA ThrawnCA left a comment

Choose a reason for hiding this comment

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

Build is broken.

@hazendaz
Copy link
Member Author

hazendaz commented Feb 3, 2024

found issue, will be pushing up shortly...

@hazendaz hazendaz marked this pull request as ready for review February 3, 2024 19:07
@hazendaz hazendaz added this to the SpotBugs 4.8.4 milestone Feb 3, 2024
@hazendaz hazendaz merged commit f7a4793 into spotbugs:master Feb 5, 2024
15 checks passed
PatrikScully pushed a commit to PatrikScully/spotbugs that referenced this pull request Jun 14, 2024
* [GHA] Add jdk 11

temurin does not have jdk 21 yet so zulu is generally head, switching to future proof

* [eclipse] Drop back to 4.24 to allow jdk 11 usage

* [spring] Drop back to 5.3.31 as we are not on jakarta yet

* [java11] Drop back logic for java 11 builds

* [eclipse] Drop binary pull back to 4.24 and add change log
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.

GHA - Add jdk 11 along with temp drop back on Eclipse to java 11 build
4 participants