chore: remove jpackage
This commit is contained in:
38
build.gradle
38
build.gradle
@@ -3,11 +3,9 @@ plugins {
|
|||||||
id 'application'
|
id 'application'
|
||||||
id 'org.openjfx.javafxplugin' version '0.0.13'
|
id 'org.openjfx.javafxplugin' version '0.0.13'
|
||||||
id 'dev.hydraulic.conveyor' version '1.4'
|
id 'dev.hydraulic.conveyor' version '1.4'
|
||||||
id "org.panteleyev.jpackageplugin" version "1.5.2"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
import org.gradle.internal.os.OperatingSystem
|
import org.gradle.internal.os.OperatingSystem
|
||||||
import org.panteleyev.jpackage.ImageType
|
|
||||||
|
|
||||||
group 'com.lenis0012'
|
group 'com.lenis0012'
|
||||||
version '1.0'
|
version '1.0'
|
||||||
@@ -78,39 +76,3 @@ javafx {
|
|||||||
version = '20'
|
version = '20'
|
||||||
modules = ['javafx.controls', 'javafx.fxml']
|
modules = ['javafx.controls', 'javafx.fxml']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
task copyDependencies(type: Copy) {
|
|
||||||
from configurations.runtimeClasspath
|
|
||||||
into "build/jmods"
|
|
||||||
}
|
|
||||||
|
|
||||||
task copyJar(type: Copy) {
|
|
||||||
from tasks.jar
|
|
||||||
into "build/jmods"
|
|
||||||
}
|
|
||||||
|
|
||||||
jpackage {
|
|
||||||
dependsOn("build", "copyDependencies", "copyJar")
|
|
||||||
|
|
||||||
appName = "Oraksi"
|
|
||||||
appVersion = project.version.toString()
|
|
||||||
vendor = "com.lenis0012"
|
|
||||||
copyright = "Copyright (c) 2023 Lennart ten Wolde"
|
|
||||||
// runtimeImage = System.getProperty("java.home")
|
|
||||||
module = "oraksi/com.lenis0012.oraksi.HelloApplication"
|
|
||||||
modulePaths = ["$buildDir/jmods"]
|
|
||||||
destination = "$buildDir/dist"
|
|
||||||
javaOptions = ["-Dfile.encoding=UTF-8", "--enable-preview", "--enable-native-access=oraksi", "--add-opens=javafx.graphics/javafx.scene=oraksi"]
|
|
||||||
type = ImageType.APP_IMAGE
|
|
||||||
|
|
||||||
// mac {
|
|
||||||
// icon = "icons/icons.icns"
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// windows {
|
|
||||||
// icon = "icons/icons.ico"
|
|
||||||
// winMenu = true
|
|
||||||
// winDirChooser = true
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user