RoomIt/build.gradle

67 lines
1.3 KiB
Groovy
Raw Normal View History

2022-09-07 16:40:43 +08:00
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'org.beryx.jlink' version '2.24.1'
}
group 'org.rococy'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
ext {
junitVersion = '5.8.1'
}
sourceCompatibility = "14"
targetCompatibility = "14"
2022-09-07 16:40:43 +08:00
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
application {
mainModule = 'org.rococy.roomit'
mainClass = 'org.rococy.roomit.HelloApplication'
}
javafx {
version = '11.0.2'
modules = ['javafx.controls', 'javafx.fxml']
}
dependencies {
2022-09-26 21:49:00 +08:00
implementation("com.jfoenix:jfoenix:9.0.0")
2022-10-01 11:07:03 +08:00
implementation("com.google.code.gson:gson:2.9.1")
2022-09-07 16:40:43 +08:00
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
test {
useJUnitPlatform()
}
jlink {
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'app'
}
}
jlinkZip {
group = 'distribution'
2022-10-01 11:07:03 +08:00
}
// 打包排除的文件
sourceSets {
main {
// 排除resources静态资源文件夹里面的文件
resources {
exclude 'org/rococy/roomit/config.json'
}
}
2022-09-07 16:40:43 +08:00
}