-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
81 lines (64 loc) · 2.25 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.21"
kotlin("plugin.serialization") version "1.9.21"
application
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "com.craftaro.serverjars"
version = "1.0-SNAPSHOT"
application {
mainClass.set("com.craftaro.serverjars.builder.AppKt")
}
repositories {
mavenCentral()
}
val asmVersion = "9.1"
val ktorVersion = "1.5.4"
val logbackVersion = "1.2.9"
val junitVersion = "5.6.0"
val assertjVersion = "3.19.0"
dependencies {
implementation(kotlin("stdlib"))
implementation("org.ow2.asm:asm:$asmVersion")
implementation("org.ow2.asm:asm-tree:$asmVersion")
implementation("org.ow2.asm:asm-util:$asmVersion")
implementation("org.ow2.asm:asm-commons:$asmVersion")
implementation("commons-cli:commons-cli:1.4")
implementation("commons-io:commons-io:2.10.0")
implementation("com.vdurmont:semver4j:3.1.0")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("com.google.code.gson:gson:2.10.1")
implementation("org.json:json:20230227")
implementation("org.jsoup:jsoup:1.17.1")
implementation("aws.sdk.kotlin:s3:1.0.0")
implementation("org.slf4j:slf4j-api:2.0.7")
implementation("org.slf4j:slf4j-nop:2.0.7")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testImplementation("org.assertj:assertj-core:${assertjVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testImplementation("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
tasks {
named<ShadowJar>("shadowJar") {
manifest {
attributes["Main-Class"] = "com.craftaro.serverjars.builder.AppKt"
}
mergeServiceFiles()
exclude("**/*.kotlin_metadata")
exclude("**/*.kotlin_builtins")
archiveBaseName.set("ServerJarsBuilder")
archiveClassifier.set("")
archiveVersion.set("")
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
}
withType<Test> {
useJUnitPlatform()
}
}