-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (48 loc) · 1.38 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
id("edu.sc.seis.launch4j") version "2.5.0"
}
group = "me.qaz"
version = "1.3.0"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("org.apache.pdfbox:pdfbox:2.0.29")
implementation("com.github.weisj:darklaf-core:2.7.3")
implementation("org.kie.modules:org-apache-batik:6.1.0.Beta1")
}
tasks.test {
useJUnit()
}
tasks.withType<JavaCompile>() {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
}
tasks.withType<KotlinCompile>() {
compilerOptions.jvmTarget.set(JvmTarget.JVM_1_8)
}
// Unix build
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "MainKt"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
// Windows build
launch4j {
mainClassName = "MainKt"
internalName = project.name
productName = project.name
textVersion = version
icon = "$projectDir/src/main/resources/icons.ico"
fileDescription = "A tool for removing watermarks in SVG files created by the StarUML software"
copyright = "GPL-3.0"
}
// All platform build
tasks.register<GradleBuild>("export") {
tasks = listOf("jar", "createExe")
}