Skip to content

Commit

Permalink
use forEach instead of configureEach for runtime deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed May 1, 2024
1 parent ab8a162 commit 33b6e50
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.utils.extendsFrom

plugins {
idea
Expand All @@ -25,26 +26,27 @@ runs {

create("client") {
systemProperty("neoforge.enabledGameTestNamespaces", modId)

dependencies {
botDep.dependencies.configureEach { runtime(this) }
runtimeLib.dependencies.configureEach { runtime(this) }
botDep.dependencies.forEach { runtime(it) }
runtimeLib.dependencies.forEach { runtime(it) }
}
}

create("server") {
systemProperty("neoforge.enabledGameTestNamespaces", modId)
programArgument("--nogui")
dependencies {
botDep.dependencies.configureEach { runtime(this) }
runtimeLib.dependencies.configureEach { runtime(this) }
botDep.dependencies.forEach { runtime(it) }
runtimeLib.dependencies.forEach { runtime(it) }
}
}

create("gameTestServer") {
systemProperty("neoforge.enabledGameTestNamespaces", modId)
dependencies {
botDep.dependencies.configureEach { runtime(this) }
runtimeLib.dependencies.configureEach { runtime(this) }
botDep.dependencies.forEach { runtime(it) }
runtimeLib.dependencies.forEach { runtime(it) }
}
}

Expand All @@ -56,8 +58,8 @@ runs {
"--existing", file("src/main/resources/").absolutePath
)
dependencies {
botDep.dependencies.configureEach { runtime(this) }
runtimeLib.dependencies.configureEach { runtime(this) }
botDep.dependencies.forEach { runtime(it) }
runtimeLib.dependencies.forEach { runtime(it) }
}
}
}
Expand Down

0 comments on commit 33b6e50

Please sign in to comment.