This repository was archived by the owner on Apr 29, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
102 lines (87 loc) · 3.68 KB
/
build.gradle.kts
File metadata and controls
102 lines (87 loc) · 3.68 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* Copyright (c) 2021-2022, Valaphee.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
application
id("com.github.johnrengelman.shadow") version "7.0.0"
id("com.palantir.git-version") version "0.12.3"
id("edu.sc.seis.launch4j") version "2.5.0"
kotlin("jvm") version "1.6.10"
id("org.openjfx.javafxplugin") version "0.0.10"
signing
}
group = "com.valaphee"
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
val details = versionDetails()
version = "${details.lastTag}.${details.commitDistance}"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/ktor/eap")
}
dependencies {
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.1")
implementation("com.google.inject:guice:5.1.0")
implementation("com.nativelibs4java:bridj:0.7.0")
implementation("com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.3")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.3")
implementation("commons-net:commons-net:3.8.0")
implementation("de.codecentric.centerdevice:javafxsvg:1.3.0")
implementation("io.github.classgraph:classgraph:4.8.141")
implementation("io.ktor:ktor-client-auth:2.0.0-eap-256")
implementation("io.ktor:ktor-client-jackson:2.0.0-beta-1")
implementation("io.ktor:ktor-client-okhttp:2.0.0-beta-1")
implementation("io.kubernetes:client-java:14.0.1")
implementation("no.tornado:tornadofx:1.7.20")
implementation("org.apache.sshd:sshd-netty:2.8.0")
implementation("org.apache.sshd:sshd-scp:2.8.0")
implementation("org.apache.sshd:sshd-sftp:2.8.0")
implementation("org.controlsfx:controlsfx:11.1.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-javafx:1.6.0")
implementation("org.jfxtras:jmetro:11.6.15")
}
tasks {
withType<JavaCompile> {
sourceCompatibility = "16"
targetCompatibility = "16"
}
withType<KotlinCompile>().configureEach { kotlinOptions { jvmTarget = "16" } }
withType<Test> { useJUnitPlatform() }
jar {
manifest {
attributes(
"Implementation-Title" to "Blit",
"Implementation-Version" to project.version,
"Implementation-Vendor" to "Valaphee"
)
}
}
shadowJar { archiveName = "blit.jar" }
}
setProperty("mainClassName", "com.valaphee.blit.MainKt")
application { mainClass.set("com.valaphee.blit.MainKt") }
javafx { modules("javafx.controls", "javafx.graphics") }
launch4j {
jarTask = tasks.shadowJar.get()
icon = "${projectDir}/app.ico"
copyright = "Copyright (c) 2021-2022, Valaphee"
jvmOptions = setOf("--add-opens=java.base/java.nio=ALL-UNNAMED", "--add-opens java.base/jdk.internal.misc=ALL-UNNAMED", "-Dio.netty.tryReflectionSetAccessible=true")
companyName = "Valaphee"
fileDescription = "Blit is a free and open-source, cross-platform WebDAV, K8s CP and SFTP client with a vast list of features."
productName = "Blit"
copyConfigurable = emptyArray<Any>()
}
signing { useGpgCmd() }