Use short temp dirs names only in gradle integration tests

This commit is contained in:
Alexey Tsvetkov
2019-07-30 17:45:54 +03:00
parent 1a0c6fe8b8
commit 4db3dcc28f
2 changed files with 14 additions and 10 deletions
@@ -44,10 +44,13 @@ dependencies {
testCompileOnly(project(":kotlin-test:kotlin-test-common")) { isTransitive = false }
}
// additional configuration in tasks.withType<Test> below
projectTest("test") {}
// Aapt2 from Android Gradle Plugin 3.2 and below does not handle long paths on Windows.
val shortenTempRootName = System.getProperty("os.name")!!.contains("Windows")
projectTest("testAdvanceGradleVersion") {
// additional configuration in tasks.withType<Test> below
projectTest("test", shortenTempRootName = shortenTempRootName) {}
projectTest("testAdvanceGradleVersion", shortenTempRootName = shortenTempRootName) {
val gradleVersionForTests = "5.3-rc-2"
systemProperty("kotlin.gradle.version.for.tests", gradleVersionForTests)
}