Skip to content

Commit

Permalink
[Gradle] Test mpp projects with gradle ...internal.load-after-store=f…
Browse files Browse the repository at this point in the history
…alse

^KT-57460 Verification Pending
  • Loading branch information
antohaby committed Mar 21, 2023
1 parent fcd2023 commit 468f2b1
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,30 @@ class HierarchicalMppIT : KGPBaseTest() {
}
}

@GradleTest
@GradleTestVersions(minVersion = TestVersions.Gradle.G_7_4, maxVersion = TestVersions.Gradle.G_7_4)
@DisplayName("KT-57460: Check 'org.gradle.configuration-cache.internal.load-after-store=false' flag")
fun testGradleConfigurationCacheInternalLoadAfterStoreFlag(gradleVersion: GradleVersion, @TempDir tempDir: Path) {
with(project("hmppGradleConfigurationCache", gradleVersion = gradleVersion, localRepoDir = tempDir)) {
val options = buildOptions.copy(
configurationCache = true,
configurationCacheProblems = BaseGradleIT.ConfigurationCacheProblems.WARN,
freeArgs = buildOptions.freeArgs + "-Dorg.gradle.configuration-cache.internal.load-after-store=false"
)

build(":lib:publish") {
assertTasksExecuted(":lib:publish")
}

build("assemble", buildOptions = options) {
assertTasksExecuted(":transformCommonMainDependenciesMetadata")
}
build("assemble", buildOptions = options) {
assertTasksUpToDate(":transformCommonMainDependenciesMetadata")
}
}
}

@GradleTest
@GradleTestVersions(maxVersion = TestVersions.Gradle.G_7_3)
@DisplayName("KT-51946: Print warning on tasks that are not compatible with configuration cache")
Expand Down

0 comments on commit 468f2b1

Please sign in to comment.