-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (39 loc) · 991 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.ir.backend.js.compile
plugins {
kotlin("jvm") version "1.5.10"
id("com.github.johnrengelman.shadow") version "7.1.2"
application
}
group = "me.kotleni"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation("com.github.elbekD:kt-telegram-bot:1.4.1")
implementation("com.google.code.gson:gson:2.8.9")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClass.set("MainKt")
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("bot")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to "Main"))
}
}
}
tasks {
build {
dependsOn(shadowJar)
}
}