Skip to content

Java: use java 17 in no-wrapper tests #20189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 8, 2025

Conversation

redsun82
Copy link
Contributor

@redsun82 redsun82 commented Aug 8, 2025

Gradle 9 which has recently been rolled out to action images requires Java 17.

Closes https://github.com/github/semmle-code/issues/53694

Gradle 9 requires Java 17.
@github-actions github-actions bot added the Java label Aug 8, 2025
@redsun82 redsun82 marked this pull request as ready for review August 8, 2025 11:09
@redsun82 redsun82 requested a review from a team as a code owner August 8, 2025 11:09
@Copilot Copilot AI review requested due to automatic review settings August 8, 2025 11:09
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates Java version requirement from Java 11 to Java 17 for no-wrapper integration tests to support Gradle 9 compatibility.

  • Changes test function parameters from use_java_11 to use_java_17 across four Android sample test files
  • Ensures compatibility with Gradle 9 which requires Java 17 as minimum version

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
java/ql/integration-tests/java/android-sample-old-style-no-wrapper/test.py Updates test function to use Java 17 for old-style Android sample tests
java/ql/integration-tests/java/android-sample-old-style-kotlin-build-script-no-wrapper/test.py Updates test function to use Java 17 for old-style Kotlin build script tests
java/ql/integration-tests/java/android-sample-no-wrapper/test.py Updates test function to use Java 17 for standard Android sample tests
java/ql/integration-tests/java/android-sample-kotlin-build-script-no-wrapper/test.py Updates test function to use Java 17 for Kotlin build script tests

@redsun82
Copy link
Contributor Author

redsun82 commented Aug 8, 2025

@smowton maybe you can chime in here?

@smowton
Copy link
Contributor

smowton commented Aug 8, 2025

Per 4197d7b looks like I wanted "at least Java 11" so this is probably fine

@redsun82 redsun82 merged commit e02a2d8 into main Aug 8, 2025
13 checks passed
@redsun82 redsun82 deleted the redsun82/java-17-in-gradle-no-wrapper-tests branch August 8, 2025 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants