[Gradle] disable toolchain auto-download in tests

Required JDKs should be already downloaded by Kotlin repo itself.
This commit is contained in:
Yahor Berdnikau
2023-07-03 13:48:53 +02:00
committed by Space Team
parent 5b1ffb417a
commit 4c95797067
@@ -418,6 +418,8 @@ private fun commonBuildSetup(
kotlinDaemonDebugPort: Int? = null,
): List<String> {
return buildOptions.toArguments(gradleVersion) + buildArguments + listOfNotNull(
// Required toolchains should be pre-installed via repo. Tests should not download any JDKs
"-Porg.gradle.java.installations.auto-download=false",
"--full-stacktrace",
if (enableBuildCacheDebug) "-Dorg.gradle.caching.debug=true" else null,
if (enableBuildScan) "--scan" else null,