-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (45 loc) · 1.18 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
plugins {
java
application
kotlin("jvm") version "1.3.72"
}
group = "net.inceptioncloud"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.formdev:flatlaf:0.37")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7")
implementation("com.google.code.gson:gson:2.8.6")
implementation("net.lingala.zip4j:zip4j:2.6.1")
testImplementation("junit", "junit", "4.12")
implementation(kotlin("script-runtime"))
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
application {
mainClassName = "updater.DragonflyUpdater"
}
val fatJar = task("fatJar", type = Jar::class) {
baseName = "${project.name}-fat"
manifest {
attributes["Main-Class"] = "updater.DragonflyUpdater"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks.jar.get() as CopySpec)
}
tasks {
"build" {
dependsOn(fatJar)
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}