f native image, just build a jar
This commit is contained in:
14
build.gradle
14
build.gradle
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user