-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
67 lines (54 loc) · 1.75 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val zircon_version: String by project
val amethyst_version: String by project
val slf4j_version: String by project
val junit_version: String by project
val mockito_version: String by project
val assertj_version: String by project
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
plugins {
kotlin("jvm") version "1.4.10"
id("com.github.johnrengelman.shadow") version "5.2.0"
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlinx")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
implementation("org.slf4j:slf4j-api:$slf4j_version")
implementation("org.slf4j:slf4j-simple:$slf4j_version")
implementation("org.hexworks.zircon:zircon.core-jvm:$zircon_version")
implementation("org.hexworks.zircon:zircon.jvm.swing:$zircon_version")
implementation("org.hexworks.amethyst:amethyst.core-jvm:$amethyst_version")
testImplementation("junit:junit:$junit_version")
testImplementation("org.mockito:mockito-all:$mockito_version")
testImplementation("org.assertj:assertj-core:$assertj_version")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveClassifier.set("")
archiveVersion.set("")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "com.example.cavesofzircon.MainKt"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "com.example.MainKt"
}
}