Skip to content

Java 17 support#72

Open
ostinru wants to merge 10 commits intoapache:mainfrom
ostinru:java-17
Open

Java 17 support#72
ostinru wants to merge 10 commits intoapache:mainfrom
ostinru:java-17

Conversation

@ostinru
Copy link
Collaborator

@ostinru ostinru commented Mar 1, 2026

Add java 17 support to cloudberry-pxf:

  • Update gradle to 7.x:
    cd server && ./gradlew wrapper --gradle-version 7.6
  • Update gradle plugins to work with newer gradle
  • Add --add-options to jvmArgs to bypass JEP486 limitations
  • Add -Xlint:-removal - do not treat removal warnings as warnings (it breaks build when run with -Werror)
  • CI: add java version compatibility tests (run JUnit tests)
  • Automation: remove JUnit tests from automation tests - save a bit of developer's time


# Detect Java major version and add --add-opens flags for Java 11+
local java_major_version
java_major_version=$("$javaexe" -version 2>&1 | head -1 | sed -E 's/.*version "([0-9]+).*/\1/')
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Examples:

1.8.0_472 -> 1
11.0.30 -> 11
17.0.14 -> 17

@ostinru
Copy link
Collaborator Author

ostinru commented Mar 1, 2026

The code is ready for review (any comments are welcomed). However I will keep it in draft for manual testing with java 8 / non-openJDK (testing doesn't covers server/pxf-service/src/scripts/pxf script).

UPD: tested bash with
openjdk version "17.0.18" 2026-01-20 LTS
OpenJDK Runtime Environment (Temurin)(build 1.8.0_482-b08)

@ostinru ostinru marked this pull request as ready for review March 3, 2026 17:35
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