f native image, just build a jar

This commit is contained in:
Gregor Lohaus
2026-05-29 12:33:32 +02:00
parent 08ad025f76
commit b98a18b49f
12 changed files with 128 additions and 447 deletions

View File

@@ -1,8 +1,6 @@
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.1.0'
// id 'org.graalvm.buildtools.native' version '1.1.1'
id 'com.gluonhq.gluonfx-gradle-plugin' version '1.0.28'
}
repositories {
@@ -19,20 +17,10 @@ dependencies {
}
javafx {
version = '22'
version = '25'
modules = [ 'javafx.controls', 'javafx.fxml' ]
}
gluonfx {
compilerArgs += [
'--features=com.gregor.jprototerm.PtyForeignRegistrationFeature',
'-H:+UnlockExperimentalVMOptions',
'-H:+ForeignAPISupport',
'--enable-native-access=ALL-UNNAMED',
"-H:ConfigurationFileDirectories=${file('src/main/resources/META-INF/native-image/com.gregor/jprototerm').absolutePath}".toString()
]
}
application {
mainClass = 'com.gregor.jprototerm.Main'
}