-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
47 lines (39 loc) · 1.24 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
import java.util.*
group = "me.ddivad"
version = "1.9.2"
description = "A bot for saving useful messages to a DM by reacting to them."
plugins {
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
dependencies {
implementation("me.jakejmattson:DiscordKt:0.23.4")
implementation("io.github.microutils:kotlin-logging-jvm:2.1.23")
implementation("ch.qos.logback:logback-classic:1.4.0")
implementation("ch.qos.logback:logback-core:1.4.0")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
Properties().apply {
setProperty("name", "Keeper")
setProperty("description", project.description)
setProperty("version", version.toString())
setProperty("url", "https://github.com/ddivad195/keeper")
store(file("src/main/resources/bot.properties").outputStream(), null)
}
}
shadowJar {
archiveFileName.set("Keeper.jar")
manifest {
attributes(
"Main-Class" to "me.ddivad.keeper.MainKt"
)
}
}
}