Skip to content

Commit

Permalink
Switch from create to register for runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Erdragh committed Mar 18, 2024
1 parent 324a67f commit b73d11a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,24 @@ runs {
modSource(project.sourceSets.getByName("main"))
}

create("client") {
register("client") {
// Comma-separated list of namespaces to load gametests from. Empty = all namespaces.
systemProperty("forge.enabledGameTestNamespaces", mod_id)
}

create("server") {
register("server") {
systemProperty("forge.enabledGameTestNamespaces", mod_id)
programArgument("--nogui")
}

// This run config launches GameTestServer and runs all registered gametests, then exits.
// By default, the server will crash when no gametests are provided.
// The gametest system is also enabled by default for other run configs under the /test command.
create("gameTestServer") {
register("gameTestServer") {
systemProperty("forge.enabledGameTestNamespaces", mod_id)
}

create("data") {
register("data") {
// example of overriding the workingDirectory set in configureEach above, uncomment if you want to use it
// workingDirectory project.file("run-data")

Expand Down

0 comments on commit b73d11a

Please sign in to comment.