generated from DiscordKt/discordkt-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
39 lines (33 loc) · 1002 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
group = "me.moeszyslak"
version = "3.0.2"
description = "A discord bot for members to alert staff"
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()
}
dependencies {
implementation("me.jakejmattson:DiscordKt:0.23.4")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
dependsOn("writeProperties")
}
register<WriteProperties>("writeProperties") {
property("name", project.name)
property("description", project.description.toString())
property("version", version.toString())
property("url", "https://github.com/the-programmers-hangout/Lighthouse")
setOutputFile("src/main/resources/bot.properties")
}
shadowJar {
archiveFileName.set("Lighthouse.jar")
manifest {
attributes("Main-Class" to "me.moeszyslak.lighthouse.MainKt")
}
}
}