[Gradle] Add IT for configuration cache on project with buildSrc

Related to #KT-43605
This commit is contained in:
Alexander Likhachev
2021-04-01 16:35:10 +03:00
parent c44d83c6ba
commit ccfc16c84a
5 changed files with 45 additions and 0 deletions
@@ -66,6 +66,17 @@ class ConfigurationCacheIT : AbstractConfigurationCacheIT() {
testConfigurationCacheOf("assemble", executedTaskNames = asList(":lib-project:compileKotlin"))
}
// KT-43605
@Test
fun testInstantExecutionWithBuildSrc() = with(Project("instantExecutionWithBuildSrc")) {
setupWorkingDir()
testConfigurationCacheOf(
"build", executedTaskNames = listOf(
":compileKotlin",
)
)
}
@Test
fun testInstantExecutionForJs() = with(Project("instantExecutionToJs")) {
testConfigurationCacheOf("assemble", executedTaskNames = asList(":compileKotlin2Js"))
@@ -0,0 +1,16 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
repositories {
mavenLocal()
mavenCentral()
}
@@ -0,0 +1,16 @@
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
repositories {
mavenLocal()
mavenCentral()
}
apply plugin: 'kotlin'