Skip to content

feat: raise minimum Java version to 11 and apply OpenRewrite best practices - #3397

Merged
velo merged 1 commit into
14.xfrom
feature/java11-min-version
Jun 8, 2026
Merged

velo merged 1 commit into
14.xfrom
feature/java11-min-version

Conversation

@velo

@velo velo commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Raises main.java.version from 1.8 to 11 in the parent POM
  • Runs OpenRewrite Java8toJava11 recipe across src/main/java (var, text blocks, NIO charset helpers, etc.)
  • Runs OpenRewrite UpgradeToJava25 across src/test/java / src/test/kotlin (JUnit 4 → JUnit 5, AssertJ idioms, mockwebserver3 5.x API)
  • Fixes several pre-existing test bugs surfaced by the JUnit 5 migration:
    • CoroutineFeignTest: tests were silently skipped under JUnit 4 runner; fixed Unit return-type assertions
    • AnnotationErrorDecoderExceptionConstructorsTest: reverted OpenRewrite's incorrect isEqualTo(null) → containsExactlyInAnyOrderEntriesOf(null) migration (NPE when NO_HEADERS = null)
    • All MockWebServer 5.x tests: added explicit server.start() calls (ReactiveFeignIntegrationTest, ribbon, and others)
  • Adds moditect.skip=true to feign-jaxb and feign-jaxb-jakarta to fix duplicate jakarta.activation module name conflict introduced by the JAXB API version bump
  • Adds .antigravitycli/, .claude/, .understand-anything/ to .gitignore

Test plan

  • mvn verify -Dtoolchain.skip=true passes (BUILD SUCCESS; GitHubExampleIT is expected to fail in local builds — it requires mvn clean install -Pdev)
  • All unit tests pass across feign-core, feign-api, feign-reactive, feign-kotlin, feign-jaxb, feign-jaxb-jakarta, feign-jaxrs*, ribbon, hystrix, mock, json, and all other modules

@velo
velo force-pushed the feature/java11-min-version branch from 76e76b4 to 21021e5 Compare June 8, 2026 15:16
…ctices

Signed-off-by: Marvin Froeder <velo.br@gmail.com>
@velo
velo force-pushed the feature/java11-min-version branch from 21021e5 to 48ec941 Compare June 8, 2026 15:50
@velo
velo merged commit 72c9729 into 14.x Jun 8, 2026
2 of 3 checks passed
@velo
velo deleted the feature/java11-min-version branch June 8, 2026 17:23
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.

1 participant