Skip to content

SCANCLI-180 Change compilation to target Java 11 #223

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 2 commits into from
Jul 8, 2025

Conversation

henryju
Copy link
Member

@henryju henryju commented May 6, 2025

SCANCLI-180

Needs manual testing, I don't think we can easily change ITs to run with Java 11.

Copy link

sonarqube-next bot commented May 6, 2025

Copy link

@henryju henryju force-pushed the jh/SCANCLI-180_java_11 branch 3 times, most recently from 91b2b6c to 47fcd50 Compare July 7, 2025 15:39
When env variable JAVA_11_HOME is defined
@henryju henryju force-pushed the jh/SCANCLI-180_java_11 branch from 47fcd50 to b01478c Compare July 7, 2025 15:59
@henryju henryju marked this pull request as ready for review July 7, 2025 16:00
@henryju henryju requested a review from ericg138 July 7, 2025 16:00
@henryju
Copy link
Member Author

henryju commented Jul 7, 2025

We can see in logs that Java 11 is used in ITs, for example here: https://cirrus-ci.com/task/4583549833052160?logs=qa#L1490

Copy link

sonarqube-next bot commented Jul 7, 2025

@ericg138
Copy link

ericg138 commented Jul 8, 2025

Do you know when SQS was updated to build with Java 17?
The scanner will fail for any version pre-new-bootstrapping (10.6) built with Java 17.

@henryju
Copy link
Member Author

henryju commented Jul 8, 2025

The scanner will fail for any version pre-new-bootstrapping (10.6) built with Java 17.

If you run the Scanner CLI with Java 11, yes, it will still fail later when bootstrapping SQ 10.5. But I guess people are already running with Java 17+ in this case.

Copy link

@ericg138 ericg138 left a comment

Choose a reason for hiding this comment

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

Tested by running an analysis with Java 11

image

@henryju henryju merged commit 22f2cb1 into master Jul 8, 2025
15 checks passed
@henryju henryju deleted the jh/SCANCLI-180_java_11 branch July 8, 2025 14:14
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.

2 participants