Skip to content
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

Set Java version for GitHub Action to 8 #1672

Merged
merged 3 commits into from
Aug 7, 2024
Merged

Conversation

banterCZ
Copy link
Member

No description provided.

@banterCZ banterCZ marked this pull request as ready for review August 7, 2024 05:48
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>${java.version}</maven.compiler.release>
Copy link
Member Author

Choose a reason for hiding this comment

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

When building by JDK 8, it would fail on this property. But when building by 9+, we need this for backward compatibility, see https://www.baeldung.com/java-compiler-release-option

<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.release>8</maven.compiler.release>
<java.version>8</java.version>
Copy link
Member Author

Choose a reason for hiding this comment

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

Spring Boot parent defines

<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>

Copy link
Member

@romanstrobl romanstrobl left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@banterCZ banterCZ merged commit f3ab158 into releases/1.4.x Aug 7, 2024
2 checks passed
@banterCZ banterCZ deleted the issues/gha-java-8 branch August 7, 2024 08:16
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