1 Star 3 Fork 0

IgnatiusGL/bilibiliVideoDownload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.68 KB
一键复制 编辑 原始数据 按行查看 历史
IgnatiusGL 提交于 2021-10-14 10:58 . refine : 删除多余代码
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.8'
id 'org.beryx.jlink' version '2.15.1'
}
apply plugin: 'org.javamodularity.moduleplugin'
// Application Configuration
ext {
appName = "fxapp"
appLauncher = "fxapp"
appPackaging = "pers.ignatius.bilibili.javafx"
appModuleName = "fxmodule"
appMainClass = "pers.ignatius.bilibili.javafx.Main"
}
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 = 'fxmodule' // name defined in module-info.java
mainClass = 'pers.ignatius.bilibili.javafx.Main'
}
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)
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/IgnatiusGL/bilibiliVideoDownload.git
[email protected]:IgnatiusGL/bilibiliVideoDownload.git
IgnatiusGL
bilibiliVideoDownload
bilibiliVideoDownload
master

搜索帮助