forked from SteamWar/SteamWar
Add VelocityCore Module
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("com.github.johnrengelman.shadow")
|
||||
}
|
||||
|
||||
group = "de.steamwar"
|
||||
|
||||
tasks.shadowJar {
|
||||
exclude("META-INF/*")
|
||||
exclude("org/sqlite/native/FreeBSD/**', 'org/sqlite/native/Mac/**', 'org/sqlite/native/Windows/**', 'org/sqlite/native/Linux-Android/**', 'org/sqlite/native/Linux-Musl/**")
|
||||
exclude("org/sqlite/native/Linux/aarch64/**', 'org/sqlite/native/Linux/arm/**', 'org/sqlite/native/Linux/armv6/**', 'org/sqlite/native/Linux/armv7/**', 'org/sqlite/native/Linux/ppc64/**', 'org/sqlite/native/Linux/x86/**")
|
||||
exclude("org/slf4j/**")
|
||||
//https://imperceptiblethoughts.com/shadow/configuration/minimizing/
|
||||
minimize {
|
||||
exclude(project(":VelocityCore"))
|
||||
exclude(dependency("mysql:mysql-connector-java:.*"))
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||
}
|
||||
|
||||
tasks.compileJava {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
java {
|
||||
srcDirs("src/")
|
||||
}
|
||||
resources {
|
||||
srcDirs("src/")
|
||||
exclude("**/*.java", "**/*.kt")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("org.projectlombok:lombok:1.18.32")
|
||||
annotationProcessor("org.projectlombok:lombok:1.18.32")
|
||||
|
||||
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
||||
compileOnly("de.steamwar:velocity:RELEASE")
|
||||
|
||||
implementation(project(":CommonCore"))
|
||||
implementation(project(":CommandFramework"))
|
||||
|
||||
compileOnly(project(":VelocityCore:Persistent"))
|
||||
|
||||
implementation("org.xerial:sqlite-jdbc:3.46.0.0")
|
||||
implementation("mysql:mysql-connector-java:8.0.33")
|
||||
|
||||
implementation("net.dv8tion:JDA:4.4.0_352") {
|
||||
exclude(module = "opus-java")
|
||||
}
|
||||
|
||||
implementation("org.msgpack:msgpack-core:0.9.8")
|
||||
|
||||
implementation("com.lunarclient:apollo-api:1.1.0")
|
||||
implementation("com.lunarclient:apollo-common:1.1.0")
|
||||
}
|
||||
Reference in New Issue
Block a user