Skip to content

Commit

Permalink
Unimined snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 30, 2024
1 parent c7bac29 commit d3d22ca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("io.github.gaming32.gradle.preprocess-root") version "0.4.4"
id("xyz.wagyourtail.unimined") version "1.2.14" apply false
id("xyz.wagyourtail.unimined") version "1.3.0-SNAPSHOT" apply false
}

repositories {
Expand Down
20 changes: 11 additions & 9 deletions version.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,15 +158,17 @@ unimined.minecraft {
val runName = "test${name.capitalized()}"
val user = name.uppercase()
val provider = (minecraftData as MinecraftDownloader).provider
val baseConfig = provider.provideVanillaRunClientTask(runName, file("run/$runName"))
baseConfig.description = "Test $user"
baseConfig.args.replaceAll { if (it == "Dev") "$user$usernameSuffix" else it }
baseConfig.jvmArgs.add("-Dworld-host-testing.enabled=true")
baseConfig.jvmArgs.add("-Dworld-host-testing.user=$user")
baseConfig.jvmArgs.add("-Ddevauth.enabled=false")
baseConfig.javaVersion = JavaVersion.VERSION_21
runs.addTarget(baseConfig)
runs.configFirst(runName, (provider.mcPatcher as AbstractMinecraftTransformer)::applyClientRunTransform)
provider.provideRunClientTask(runName, file("run/$runName"))
configFirst(runName) {
description = "Test $user"
args!!.replaceAll { if (it == "Dev") "$user$usernameSuffix" else it }
jvmArgs = jvmArgs!!.toList() + listOf(
"-Dworld-host-testing.enabled=true",
"-Dworld-host-testing.user=$user",
"-Ddevauth.enabled=false"
)
javaVersion = JavaVersion.VERSION_21
}
}
}
}
Expand Down

0 comments on commit d3d22ca

Please sign in to comment.