Archive eaglerxserver (plugin, 1.5.2, 1.8.8, 1.12.2, clean)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
|
||||
plugins {
|
||||
id "application"
|
||||
id "com.gradleup.shadow" version "8.3.6"
|
||||
}
|
||||
|
||||
configurations {
|
||||
sqliteDriver
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(":supervisor-protocol")
|
||||
implementation project(":skin-cache")
|
||||
implementation(libs.guava)
|
||||
implementation(libs.hppc)
|
||||
implementation(libs.slf4j)
|
||||
implementation(libs.bundles.netty.supervisor)
|
||||
runtimeOnly(libs.logback)
|
||||
sqliteDriver project(":skin-cache:sqlite-jdbc-jar")
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = "net.lax1dude.eaglercraft.backend.supervisor.EaglerXSupervisorServer"
|
||||
}
|
||||
|
||||
def embedSQLiteJar(com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar taskIn) {
|
||||
taskIn.dependsOn ":skin-cache:sqlite-jdbc-jar:jar"
|
||||
configurations.sqliteDriver.each {
|
||||
def phile = it
|
||||
taskIn.from(phile.parentFile.absolutePath) {
|
||||
include phile.name
|
||||
rename phile.name, "net/lax1dude/eaglercraft/backend/skin_cache/libs/sqlite-jdbc.library"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("shadowJar", com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
|
||||
embedSQLiteJar(it)
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
archiveFileName = "EaglerXSupervisor.jar"
|
||||
}
|
||||
Reference in New Issue
Block a user