Skip to content
This repository was archived by the owner on May 19, 2024. It is now read-only.

Commit ea15950

Browse files
committed
build to a jar lol
1 parent 55f2877 commit ea15950

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

build.gradle.kts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
@Suppress("DSL_SCOPE_VIOLATION") // TODO: https://youtrack.jetbrains.com/issue/KTIJ-19369
12
plugins {
2-
@Suppress("DSL_SCOPE_VIOLATION") // TODO: https://youtrack.jetbrains.com/issue/KTIJ-19369
33
alias(libs.plugins.kotlin)
4+
alias(libs.plugins.shadow)
5+
application
46
}
57

8+
version = "1.1.0"
9+
610
repositories {
711
mavenCentral()
812
}
@@ -13,3 +17,7 @@ dependencies {
1317
}
1418

1519
kotlin.jvmToolchain(17)
20+
21+
application {
22+
mainClass.set("io.github.petercrawley.aggregator.Aggregator")
23+
}

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
jda = "5.0.0-beta.2"
33
kotlin = "1.7.22"
44
mongo = "4.8.0"
5+
shadow = "7.1.2"
56

67
[libraries]
78
jda = { module = "net.dv8tion:JDA", version.ref = "jda" }
89
mongo = { module = "org.litote.kmongo:kmongo", version.ref = "mongo"}
910

1011
[plugins]
1112
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
13+
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }

0 commit comments

Comments
 (0)