Skip to content

add compile and unit test checks for java 21 and 25#1727

Draft
adamkorynta wants to merge 2 commits into
developfrom
devops/add_java_21_compile_support
Draft

add compile and unit test checks for java 21 and 25#1727
adamkorynta wants to merge 2 commits into
developfrom
devops/add_java_21_compile_support

Conversation

@adamkorynta
Copy link
Copy Markdown
Collaborator

@adamkorynta adamkorynta commented May 9, 2026

Summary

Add Java 21 compile/unit test targets to build matrix. currently only running Java 11 integration tests due to target production environments and not wanting to overly abuse GitHub Actions.

Cannot currently add Java 25 support because there is no gradle version that supports both Java 11 and Java 25 unless setting the toolchain version to Java 11 (which defeats the whole purpose).

Related Issue

Related to #1004

Validation

Tested through CI/CD pipeline.

Checklist

  • AI tools used

currently only running Java 11 integration tests due to target production environments
@adamkorynta adamkorynta requested a review from krowvin May 9, 2026 00:39
@adamkorynta adamkorynta marked this pull request as draft May 9, 2026 00:47
@adamkorynta adamkorynta force-pushed the devops/add_java_21_compile_support branch from 7375873 to 1d74814 Compare May 9, 2026 00:53
// put all those columns together as "valid"
CommonTableExpression<Record7<BigDecimal, String, String, String, String, BigDecimal,
String>> valid =
String>> valid =
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should probably just use var at this point.

Copy link
Copy Markdown
Collaborator

@krowvin krowvin left a comment

Choose a reason for hiding this comment

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

Looks good, few followup thoughts. Thanks for the PR!

import org.jooq.Cursor;
import org.jooq.DSLContext;
import org.jooq.Field;
import org.jooq.Record;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Ah I assume this is also what was keeping java 25 from building?

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.

yeah pretty simple fix, didn't test integration tests though so there might be more at runtime.

id: thebuild
run: ./gradlew clean build --info --init-script init.gradle
- name: integration tests
if: matrix.jdk == 11
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If i'm reading correct this is saying only do an integration test for 11? Just making sure!

If we have other toggles like this it might be worth using an env in the github repo to have a "JAVA_VERSION" and we can toggle that going forward? Might be extra! Would be good to make an issue for this if someone agrees with the deb hard coding 11 in places gives?

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.

right now there's some sort of caching issue that's causing the builds to fail so I didn't even try to get 21 or even 25 to run integration tests.

For 25 we would need to update gradle to v9 which drops support for Java 11..... So we could use the gradle toolchain mechanism, which would require downloading a whole separate JRE in the pipeline and referencing that. That could work with a repo level env variable.

Copy link
Copy Markdown
Collaborator

@krowvin krowvin left a comment

Choose a reason for hiding this comment

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

Approving this,

Was not sure if @MikeNeilson had a blocker but realized he would request changes if it was.

And it's listed as draft

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.

3 participants