Move generated parcelize tests to tests-gen directory

This commit is contained in:
Dmitriy Novozhilov
2021-10-05 14:34:43 +03:00
committed by TeamCityServer
parent cd9d74b029
commit bc7cc6b5a9
6 changed files with 16 additions and 2 deletions
@@ -1,3 +1,5 @@
import org.jetbrains.kotlin.ideaExt.idea
description = "Parcelize compiler plugin"
plugins {
@@ -44,9 +46,21 @@ dependencies {
parcelizeRuntimeForTests(project(":kotlin-android-extensions-runtime")) { isTransitive = false }
}
val generationRoot = projectDir.resolve("tests-gen")
sourceSets {
"main" { projectDefault() }
"test" { projectDefault() }
"test" {
projectDefault()
this.java.srcDir(generationRoot.name)
}
}
if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
apply(plugin = "idea")
idea {
this.module.generatedSourceDirs.add(generationRoot)
}
}
runtimeJar()