Skip to content

Bumped compiler and source to 17, modified compiler plugin execution … - #351

Merged
simonpriadka merged 1 commit into
Intersmash:mainfrom
simonpriadka:feature/enable-jdk21
Jun 24, 2026
Merged

Bumped compiler and source to 17, modified compiler plugin execution …#351
simonpriadka merged 1 commit into
Intersmash:mainfrom
simonpriadka:feature/enable-jdk21

Conversation

@simonpriadka

@simonpriadka simonpriadka commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Description

  • POM Changes
    • Changes JDK source & target from JDK11 -> JDK17
    • Bumps compiler version to be JDK17 and JDK21 compatible
    • Changes the spotless configuration so that it references the file directly instead of depending on style JAR.
    • Fixes WF JAR & Maven plugin configuration
  • Fixes K8S binary download URL
  • GH Actions
    • Introduced parallelism (-T) and BF dependency fetching implementation (-Daether.dependencyCollector.impl=bf) to speed-up repository prepare builds (reduced execution from ~15 minutes to ~6)
    • Changed the spotless check to be done in single pass - as it doesn't require the style JAR dependency anymore
    • With the enablement of Java 21 -> changed the jobs to matrix jobs for both JDKs (17 and 21) support
    • Added step pull & retag the gcr.io/kubebuilder/kube-rbac-proxy:v0.15.0 image on which the Hyperfoil is dependent

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

  • Code contributed by me aligns with current project license: Apache 2.0
  • Pull Request contains a description of the changes
  • Pull Request does not include fixes for multiple issues/topics
  • Code is self-descriptive and/or documented
  • I have implemented unit tests to cover my changes
  • I tested my code in OpenShift

Issues

@simonpriadka
simonpriadka force-pushed the feature/enable-jdk21 branch from 69bc2b7 to df2bad4 Compare June 10, 2026 14:23
@tommaso-borgato
tommaso-borgato requested a review from fabiobrz June 10, 2026 16:38
@simonpriadka
simonpriadka force-pushed the feature/enable-jdk21 branch 8 times, most recently from eb9fe41 to db80c7c Compare June 12, 2026 09:44
@tommaso-borgato
tommaso-borgato self-requested a review June 18, 2026 11:38
…to work with lombok and sundrio and bumped version, created matrix JDK job with maven build speedup and broke down the steps into multiple steps, maven spotless-plugin not depending on style config jar, but referencing the file instead
@simonpriadka
simonpriadka force-pushed the feature/enable-jdk21 branch from db80c7c to 4544256 Compare June 24, 2026 06:57
Comment thread pom.xml
<configuration>
<java>
<eclipse>
<file>${maven.multiModuleProjectDirectory}/style-config/src/main/resources/org/jboss/intersmash/configs/eclipse-formatter.xml</file>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

not sure about this one...

@simonpriadka I don't recall exactly the context / motivations / etc. about style config changes: can you please summarize them here just for my understanding?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Motivation was to use the file directly instead of depending on the style-config module to be built prior to running spotless plugin invocations. The change was also reflected into the check style GH action as well, so that it needs just one maven invocation instead of two

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'll address the removal of the style-config completely when I'll be working on #365

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 24, 2026

@fabiobrz fabiobrz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks @simonpriadka

@simonpriadka
simonpriadka merged commit 7db8e15 into Intersmash:main Jun 24, 2026
5 checks passed
@simonpriadka
simonpriadka deleted the feature/enable-jdk21 branch June 24, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix hyperfoil test Build with Java 21

3 participants