-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
69 lines (56 loc) · 1.8 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
buildscript {
repositories {
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
maven("https://maven.aliyun.com/repository/gradle-plugin")
}
}
plugins {
id("java")
id("application")
id("org.openjfx.javafxplugin") version "0.1.0"
id("org.javamodularity.moduleplugin") version "1.8.15"
id("org.beryx.jlink") version "3.0.1"
}
group = "io.vanstudio"
version = "1.1.2"
repositories {
maven("https://mirrors.cloud.tencent.com/nexus/repository/maven-public/")
mavenCentral()
maven("https://maven.aliyun.com/repository/gradle-plugin")
}
tasks.withType(JavaCompile::class.java).configureEach {
options.encoding = "UTF-8"
}
application {
mainModule = "io.vanstudio.srt"
mainClass = "io.vanstudio.srt.Main"
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
// modularity.inferModulePath.set(false)
}
javafx {
version = "21"
modules = listOf("javafx.controls", "javafx.fxml", "javafx.graphics")
}
jlink {
options = listOf("--strip-debug", "--compress", "2", "--no-header-files", "--no-man-pages", "--ignore-signing-information")
launcher{
name = "SrtEdit"
jvmArgs = listOf(/*"-Dlog4j.configurationFile=./log4j2.xml",*/"-Djava.locale.providers=HOST,CLDR,COMPAT")
}
jpackage {
icon = "src/main/resources/icons/srte.icns"
}
}
dependencies {
implementation("com.azure:azure-ai-translation-text:1.0.0")
implementation("io.netty:netty-common:4.1.115.Final")
implementation("io.projectreactor.tools:blockhound:1.0.9.RELEASE")
implementation("io.micrometer:context-propagation:1.1.1")
// testImplementation("org.testfx:testfx-core:4.0.18")
// testImplementation("org.testfx:testfx-junit:4.0.18")
// testImplementation("junit:junit:4.13.1")
}