When running with the –warning-mode all key, I get the following.
The JavaExec.main property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the mainClass property instead. See https://docs.gradle.org/7.3/dsl/org.gradle.api.tasks.JavaExec.html#org.gradle.api.tasks.JavaExec:main for more details.
But I don’t use this parameter, I use mainClass.
build.gradle
plugins {
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.beryx.jlink' version '2.24.4'
}
repositories {
mavenCentral()
}
application {
mainModule = 'pigletmodule'
mainClass = 'piglet.Main'
}
javafx {
version = "17.0.1"
modules = ['javafx.controls']
}
jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'piglet'
}
}