Skip to content

build only on java 25 and download it if needed#2735

Merged
riccardobl merged 1 commit intojMonkeyEngine:masterfrom
riccardobl:lessbuild
May 1, 2026
Merged

build only on java 25 and download it if needed#2735
riccardobl merged 1 commit intojMonkeyEngine:masterfrom
riccardobl:lessbuild

Conversation

@riccardobl
Copy link
Copy Markdown
Member

@riccardobl riccardobl commented May 1, 2026

options.release = 8 should guarantee that we use java 8 standard lib.
With this in place it should be fine to compile only with java 25 in CI, making the build faster.

This PR also makes sure java 25 is automatically downloaded with foojay toolchains.

Co-authored-by: Copilot <copilot@github.com>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request implements Gradle toolchains for the project, setting the Java language version to 25 and configuring the Foojay resolver plugin. Feedback identifies critical issues with the configuration: the Foojay plugin version 1.0.0 is non-existent and should be 0.9.0, and the Java language version 25 is not yet released and should likely be 21.

Comment thread settings.gradle
* This is the global settings file used by all subprojects.
**/
plugins {
id 'org.gradle.toolchains.foojay-resolver-convention' version '1.0.0'

This comment was marked as outdated.

Comment thread common.gradle
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain {
languageVersion = JavaLanguageVersion.of(25)

This comment was marked as outdated.

@riccardobl riccardobl merged commit 455f39f into jMonkeyEngine:master May 1, 2026
13 checks passed
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