forked from Tyluur/Lotica-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
50 lines (40 loc) · 925 Bytes
/
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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
application
kotlin("jvm") version "1.4.20"
id("com.github.johnrengelman.shadow") version "5.1.0"
}
val launcherClass = "Loader"
application {
mainClassName = "Loader"
}
repositories {
mavenCentral()
}
dependencies {
// Jvm
implementation(kotlin("stdlib-jdk8"))
//Utilities
implementation("commons-codec:commons-codec:1.9")
// Logging
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("com.michael-bull.kotlin-inline-logger", "kotlin-inline-logger-jvm", "1.0.2")
}
java {
withSourcesJar()
withJavadocJar()
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("app")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "Loader"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}