[Gradle] Add IT for configuration cache on project with buildSrc
Related to #KT-43605
This commit is contained in:
+11
@@ -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"))
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
dependencies {
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
apply plugin: 'kotlin'
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun foo() {}
|
||||
+1
@@ -0,0 +1 @@
|
||||
fun hello() = "Hello"
|
||||
Reference in New Issue
Block a user