diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fec2779..2115723 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -8,6 +8,7 @@ plugins { // Apply the application plugin to add support for building a CLI application in Java. application + id("com.gradleup.shadow") version "8.3.3" } repositories { @@ -23,6 +24,9 @@ dependencies { // This dependency is used by the application. implementation(libs.guava) + implementation(libs.javacord) + implementation(libs.dotenv) + implementation(libs.log4j) } // Apply a specific Java toolchain to ease working on different environments. @@ -37,6 +41,13 @@ application { mainClass = "net.tomatentum.tomatenmusic3.App" } + +tasks.withType { + manifest { + attributes["Main-Class"] = application.mainClass + } +} + tasks.named("test") { // Use JUnit Platform for unit tests. useJUnitPlatform() diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index d7672dc..7c09664 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,15 @@ [versions] guava = "33.0.0-jre" junit-jupiter = "5.10.2" +javacord = "3.8.0" +dotenv = "3.0.0" +log4j = "2.24.1" [libraries] guava = { module = "com.google.guava:guava", version.ref = "guava" } junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" } +javacord = { module = "org.javacord:javacord", version.ref = "javacord" } +dotenv = { module = "io.github.cdimascio:dotenv-java", version.ref = "dotenv"} +log4j = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j"} + +