2022-09-27 20:16:33 +00:00
|
|
|
plugins {
|
2022-09-27 22:12:20 +00:00
|
|
|
java
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
2022-09-27 20:16:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "de.limited_dev"
|
2022-10-18 20:53:12 +00:00
|
|
|
version = "1.0.1"
|
2022-09-27 20:16:33 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2022-10-18 19:05:30 +00:00
|
|
|
maven("https://m2.dv8tion.net/releases")
|
2022-09-27 20:16:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-09-27 22:12:20 +00:00
|
|
|
implementation("net.dv8tion:JDA:5.0.0-alpha.20")
|
2022-10-18 19:05:30 +00:00
|
|
|
implementation("com.sedmelluq:lavaplayer:1.3.77")
|
|
|
|
implementation("org.slf4j:slf4j-api:2.0.3")
|
|
|
|
implementation("org.slf4j:slf4j-simple:2.0.3")
|
2022-09-27 20:16:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.getByName<Test>("test") {
|
|
|
|
useJUnitPlatform()
|
2022-09-27 22:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Jar> {
|
|
|
|
manifest {
|
|
|
|
attributes["Main-Class"] = "de.limited_dev.lil_judd.Main"
|
|
|
|
}
|
|
|
|
// To add all of the dependencies
|
|
|
|
from(sourceSets.main.get().output)
|
|
|
|
|
|
|
|
dependsOn(configurations.runtimeClasspath)
|
|
|
|
from({
|
|
|
|
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
dependencies {
|
|
|
|
include(dependency("net.dv8tion:JDA:5.0.0-alpha.20"))
|
2022-10-18 19:05:30 +00:00
|
|
|
include(dependency("com.sedmelluq:lavaplayer:1.3.77"))
|
|
|
|
include(dependency("org.slf4j:slf4j-api:2.0.3"))
|
|
|
|
include(dependency("org.slf4j:slf4j-simple:2.0.3"))
|
2022-09-27 22:12:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<JavaCompile>{
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
java{
|
|
|
|
sourceCompatibility = org.gradle.api.JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = org.gradle.api.JavaVersion.VERSION_17
|
2022-09-27 20:16:33 +00:00
|
|
|
}
|