2022-03-09 21:11:11 +00:00
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id("java")
|
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.0"
|
|
|
|
|
id("maven-publish")
|
2024-03-31 09:02:51 +00:00
|
|
|
id("org.springframework.boot") version("2.7.8")
|
2022-03-09 21:11:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "com.alttd"
|
|
|
|
|
version = "1.0.0-SNAPSHOT"
|
|
|
|
|
description = "Altitude Discord Bot."
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
toolchain {
|
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
|
publications {
|
|
|
|
|
create<MavenPublication>("mavenJava") {
|
|
|
|
|
from(components["java"])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
|
withType<JavaCompile> {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
withType<Javadoc> {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-08 18:18:36 +00:00
|
|
|
withType<Jar> {
|
|
|
|
|
manifest {
|
2024-03-31 09:02:51 +00:00
|
|
|
// attributes["Main-Class"] = "BOOT-INF/classes/${rootProject.group}.${project.name}"
|
|
|
|
|
attributes["Main-Class"] = "org.springframework.boot.loader.JarLauncher"
|
2022-04-08 18:18:36 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-09 13:21:09 +00:00
|
|
|
shadowJar {
|
|
|
|
|
archiveFileName.set(rootProject.name + ".jar")
|
2024-03-31 09:02:51 +00:00
|
|
|
manifest {
|
|
|
|
|
attributes["Main-Class"] = "org.springframework.boot.loader.JarLauncher"
|
|
|
|
|
}
|
2022-09-09 13:21:09 +00:00
|
|
|
}
|
|
|
|
|
|
2022-03-09 21:11:11 +00:00
|
|
|
build {
|
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-09 13:21:09 +00:00
|
|
|
jar {
|
|
|
|
|
enabled = false
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-09 21:11:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2023-03-12 04:32:07 +00:00
|
|
|
// JDA
|
2024-08-06 22:17:58 +00:00
|
|
|
implementation("net.dv8tion:JDA:5.0.2") {
|
2022-04-13 19:46:09 +00:00
|
|
|
exclude("opus-java") // exclude audio
|
2022-03-09 21:11:11 +00:00
|
|
|
}
|
2022-04-13 19:46:09 +00:00
|
|
|
// MySQL
|
2024-01-13 07:27:42 +00:00
|
|
|
implementation("mysql:mysql-connector-java:8.0.33")
|
2022-03-09 21:11:11 +00:00
|
|
|
|
|
|
|
|
// Configurate
|
2022-04-16 08:37:01 +00:00
|
|
|
implementation("org.spongepowered:configurate-yaml:4.1.2")
|
2022-09-16 07:17:52 +00:00
|
|
|
|
2023-03-12 04:32:07 +00:00
|
|
|
// Excel
|
|
|
|
|
implementation("org.apache.poi:poi:5.2.0")
|
|
|
|
|
implementation("org.apache.poi:poi-ooxml:5.2.0")
|
|
|
|
|
// Other stuff?
|
2024-01-13 07:27:42 +00:00
|
|
|
compileOnly("org.projectlombok:lombok:1.18.30")
|
2022-09-16 07:17:52 +00:00
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
2023-05-23 02:18:45 +00:00
|
|
|
implementation("com.alttd:AltitudeLogs:1.0")
|
2024-03-31 09:02:51 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web:3.2.1")
|
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-validation:3.2.1")
|
|
|
|
|
implementation("com.google.code.gson:gson:2.8.9")
|
2022-03-09 21:11:11 +00:00
|
|
|
}
|