-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add GenerateEmbeddedJreTask to generate JRE #740
base: master
Are you sure you want to change the base?
Conversation
Introduced GenerateEmbeddedJreTask for generating a trimmed JRE using jlink. Added task registration in setupTasks to facilitate custom JRE creation during the build process. This helps minimize the bundled JRE size tailored to specific needs.
I opted against implementing more sophisticated tasks like an export task (like we have for the harness/tests project) as these are highly project specific and not hard to implement. Hence in my opinion, it's not worth shipping such tasks as part of our project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably add a new task in the godot editor plugin to generate it as well, right next to the Kotlin project generation.
) | ||
|
||
@Input | ||
var outputDir: String = "jvm/jre-${getArch()}-${getOs()}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonder if we should declare the jvm directory path in the tool-common directory, to avoid hardcoding it here.
) | ||
|
||
@Input | ||
var javaHome: String = System.getProperty("java.home") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we potentially use the JVM running the gradle task if JAVA_HOME is not set ? Also can we make sure it's at least 11 ?
Resolves #163