-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
48 lines (40 loc) · 989 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "me.jakejmattson"
version = Versions.BOT
plugins {
kotlin("jvm") version "1.4.0"
id("com.github.johnrengelman.shadow") version "6.0.0"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation("me.jakejmattson:DiscordKt:${Versions.DISCORDKT}")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
copy {
from(file("src/main/resources/templates/readme-template.md"))
into(file("."))
rename{ "README.md" }
expand(
"kotlin" to kotlin.coreLibrariesVersion,
"discordkt" to Versions.DISCORDKT
)
}
shadowJar {
archiveFileName.set("EmbedBot.jar")
manifest {
attributes(
"Main-Class" to "me.jakejmattson.embedbot.MainAppKt"
)
}
}
}
object Versions {
const val BOT = "2.1.0"
const val DISCORDKT = "0.19.1"
}