Update build optimizations (#6433)

This commit is contained in:
David Perez
2026-02-04 14:08:15 -06:00
committed by GitHub
parent 29648e03c8
commit 47b9509062
11 changed files with 13 additions and 106 deletions

View File

@@ -260,18 +260,6 @@ protobuf {
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
@Suppress("MagicNumber")
forkEvery = 100
maxHeapSize = "2g"
maxParallelForks = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)
jvmArgs = jvmArgs.orEmpty() + "-XX:+UseParallelGC" +
// Explicitly setting the user Country and Language because tests assume en-US
"-Duser.country=US" +
"-Duser.language=en"
}
private fun renameFile(path: String, newName: String) {
val originalFile = File(path)
if (!originalFile.exists()) {