fun DependencyHandler.shadowApi(notation: Any) { shadow(notation) api(notation) } plugins { `java-library` id("application") } group = "net.mysterio" version = "1.0-SNAPSHOT" application { mainClass.set("$group.CastorKt") } java { toolchain.languageVersion.set(JavaLanguageVersion.of(17)) } tasks.withType { archiveFileName.set("${project.name}.jar") manifest { attributes( "Main-Class" to "net.mysterio.CastorKt" ) } from(project.configurations.runtimeClasspath.get()) } tasks.withType { enabled = true } repositories { mavenCentral() mavenLocal() maven("https://jitpack.io/") maven("https://m2.dv8tion.net/releases") maven("https://m2.duncte123.dev/releases") { name = "m2-duncte123" } } dependencies { testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.2") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.2") implementation(kotlin("stdlib-jdk8")) implementation("net.dv8tion:JDA:5.0.0-beta.23") implementation("com.google.code.gson:gson:2.11.0") implementation("org.json:json:20240303") implementation("me.duncte123:botCommons:3.0.16") implementation("dev.arbjerg:lavaplayer:2.2.1") implementation("org.apache.logging.log4j:log4j-core:2.19.0") implementation("org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0") shadow("com.github.Kaktushose:jda-commands:v4.0.0-beta.2") { exclude(group = "net.dv8tion", module = "JDA") } } tasks.withType { options.compilerArgs.plus("-parameters") }