Files
ZomboidForge/agent/build.gradle.kts
T

21 lines
751 B
Kotlin

// Java agent for runtime work (mod loading, live patches). Build-time patches are in :patcher.
plugins {
id("zomboidforge.java-conventions")
}
dependencies {
implementation(project(":api"))
implementation(project(":core"))
implementation(project(projectZomboid.compatProject("runtime")))
compileOnly(files(projectZomboid.serverJar))
}
tasks.jar {
archiveBaseName = "zomboidforge-agent"
manifest.attributes("Premain-Class" to "dev.overlord.zomboidforge.agent.ForgeAgent")
// The agent jar is appended to the system class path and includes api, core and compat runtime.
from(configurations.runtimeClasspath.map { classpath -> classpath.map { zipTree(it) } })
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}