-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
55 lines (43 loc) · 1.2 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
import org.jetbrains.kotlin.konan.properties.Properties
plugins {
kotlin("jvm") version "1.4.0"
id("com.github.johnrengelman.shadow") version "6.0.0"
}
group = "com.coldfire"
version = "0.9-beta"
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
// implementation("com.github.elbekD:kt-telegram-bot:1.3.5")
// implementation("com.sparkjava:spark-kotlin:1.0.0-alpha")
implementation("io.github.kotlin-telegram-bot.kotlin-telegram-bot:telegram:5.0.0")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
shadowJar {
minimize()
manifest {
attributes(mapOf("Main-Class" to "com.coldfire.cpe1cbot.TelegramBotKt"))
}
mustRunAfter(build)
doFirst {
file("$buildDir/resources/main/version.properties").writer()
.use {
val p = Properties()
p["version"] = project.version.toString()
p.store(it, null)
}
}
}
task("stage") {
dependsOn(shadowJar, clean)
}
}