Skip to content

Conversation

@snuyanzin
Copy link
Contributor

@snuyanzin snuyanzin commented Oct 19, 2025

NOTE:
This PR is based on PR [hotfix][tests] Fix unstable test IcebergRecordReaderTest#testReadLogTable

I can rebase it once the first one is merged

Purpose

Add support for jdk17, 21 and also add them to ci in order to be sure it is able to build and pass tests

Brief change log

  1. it would make sense to bump both to the latest versions where jdk11 is still supported
    1.25.0 - first googleJavaFormat where jdk11 was dropped (for more details https://github.com/google/google-java-format/releases?page=1)
    2.xx.x - jdk11 is still supported
    3.0.0 is the first where jdk11 was dropped (for more details https://github.com/diffplug/spotless/releases?page=1)
  2. Move spotless plugin to java11+ profile. The reason for that is that newer spotless requires java11 runtime, which means property like skip.on.java8 will not help (not sure, may be completely remove this property?)
  3. Adjust extra add-exports
  4. Add jdks to ci

Tests

existing + with newer jdks

API and Format

no

Documentation

no

@snuyanzin snuyanzin changed the title Add support for jdk17 and jdk21 and add these jdks to CI [build] Add support for jdk17 and jdk21 and add these jdks to CI Oct 19, 2025
Comment on lines +57 to +69
java-version: "11"

build-on-jdk17:
name: "Java 17"
uses: ./.github/workflows/ci-template.yaml
with:
java-version: "17"

build-on-jdk21:
name: "Java 21"
uses: ./.github/workflows/ci-template.yaml
with:
java-version: "21"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

or test only on one jdk, and only build for others?
Tests for every jdk may be move to nightly?

@snuyanzin snuyanzin force-pushed the jdk17_1 branch 3 times, most recently from 16c1ecc to e70ca0b Compare October 19, 2025 13:12
@snuyanzin
Copy link
Contributor Author

fyi: @wuchong

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