Skip to content

Commit 0e1711e

Browse files
committed
fix run task classpath
1 parent 194b2d4 commit 0e1711e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ tasks {
7070
group = "build"
7171
description = "Execute ZenithProxy With Plugin"
7272
classpath = sourceSets.main.get().runtimeClasspath
73+
// filter out duplicate classpath entries
74+
// we want zenith to load our plugin classes from the run directory like it would in prod
75+
.filter { !it.path.contains(layout.buildDirectory.asFile.get().path) }
7376
workingDir = runDirectory.asFile
7477
mainClass.set("com.zenith.Proxy")
7578
jvmArgs = listOf("-Xmx300m", "-XX:+UseG1GC")

0 commit comments

Comments
 (0)