-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
45 lines (38 loc) · 1.14 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinx_coroutines_version = "1.4.0"
plugins {
kotlin("jvm") version "1.4.10"
id("com.github.johnrengelman.shadow") version "6.1.0"
}
group = "my.template"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$kotlinx_coroutines_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlinx_coroutines_version")
implementation("org.pushing-pixels:radiance-trident:3.5.1")
implementation("org.pushing-pixels:radiance-torch:3.5.1")
implementation("org.swinglabs.swingx:swingx-autocomplete:1.6.5-1")
testImplementation(kotlin("test-junit"))
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("shadow")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "template.MainKt"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}