2 Star 1 Fork 1

IgnatiusGL/DNFSFTools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
IgnatiusGL 提交于 2020-08-20 21:18 +08:00 . 修复显示信息乱码bug
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.15.1'
id 'com.github.ben-manes.versions' version '0.23.0'
}
// Application Configuration
ext {
appName = "DnfTools"
appLauncher = "fxapp"
appPackaging = "fxapp"
appModuleName = "dnftools"
appMainClass = "fxapp.App"
}
mainClassName = "${ext.appModuleName}/${ext.appMainClass}"
repositories {
maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
javafx {
version = '14'
modules = [
'javafx.base',
'javafx.graphics',
'javafx.controls',
'javafx.fxml',
'javafx.media',
'javafx.swing',
'javafx.web'
]
}
application {
mainModule = 'dnftools' // name defined in module-info.java
mainClass = 'fxapp.App'
}
jlink {
imageZip = project.file("${buildDir}/distributions/${appPackaging}-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = "${appLauncher}"
}
}
task dist {
dependsOn clean, jlinkZip
description "Calls clean and then jlinkZip [default]"
}
defaultTasks 'dist'
if (project.hasProperty('debugRun') && project.debugRun as boolean) {
run {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=*:5005'
}
}
plugins.withType(JavaPlugin).configureEach {
java {
modularity.inferModulePath = true
}
}
sourceSets {
main {
output.setResourcesDir(java.outputDir)
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/IgnatiusGL/DNFSFTools.git
[email protected]:IgnatiusGL/DNFSFTools.git
IgnatiusGL
DNFSFTools
DNFSFTools
master

搜索帮助