[Gradle] Fix CocoaPods configuration cache IT for Gradle 8.6
This commit is contained in:
committed by
Space Team
parent
0882d1752d
commit
e822375461
+15
-31
@@ -901,44 +901,28 @@ class CocoaPodsIT : KGPBaseTest() {
|
|||||||
),
|
),
|
||||||
configurationCache = true
|
configurationCache = true
|
||||||
)
|
)
|
||||||
|
|
||||||
nativeProjectWithCocoapodsAndIosAppPodFile(
|
nativeProjectWithCocoapodsAndIosAppPodFile(
|
||||||
gradleVersion = gradleVersion,
|
gradleVersion = gradleVersion,
|
||||||
buildOptions = buildOptions
|
buildOptions = buildOptions
|
||||||
) {
|
) {
|
||||||
buildGradleKts.addCocoapodsBlock("""pod("Base64", version = "1.1.2")""")
|
buildGradleKts.addCocoapodsBlock("""pod("Base64", version = "1.1.2")""")
|
||||||
|
|
||||||
val tasks = arrayOf(
|
assertSimpleConfigurationCacheScenarioWorks(
|
||||||
":podspec",
|
buildArguments = arrayOf(
|
||||||
":podImport",
|
":podspec",
|
||||||
":podPublishDebugXCFramework",
|
":podImport",
|
||||||
":podPublishReleaseXCFramework",
|
":podPublishDebugXCFramework",
|
||||||
":syncFramework",
|
":podPublishReleaseXCFramework",
|
||||||
|
":syncFramework",
|
||||||
|
),
|
||||||
|
buildOptions = buildOptions,
|
||||||
|
executedTaskNames = listOf(
|
||||||
|
":podPublishDebugXCFramework",
|
||||||
|
":podPublishReleaseXCFramework",
|
||||||
|
":linkPodDebugFrameworkIOS",
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
val executableTasks = listOf(
|
|
||||||
":podspec",
|
|
||||||
":podPublishDebugXCFramework",
|
|
||||||
":podPublishReleaseXCFramework",
|
|
||||||
":linkPodDebugFrameworkIOS",
|
|
||||||
)
|
|
||||||
|
|
||||||
build(*tasks) {
|
|
||||||
assertTasksExecuted(executableTasks)
|
|
||||||
|
|
||||||
assertOutputContains("Calculating task graph as no configuration cache is available for tasks")
|
|
||||||
|
|
||||||
assertOutputContains("Configuration cache entry stored.")
|
|
||||||
}
|
|
||||||
|
|
||||||
build("clean")
|
|
||||||
|
|
||||||
build(*tasks) {
|
|
||||||
assertOutputContains("Reusing configuration cache.")
|
|
||||||
}
|
|
||||||
|
|
||||||
build(*tasks) {
|
|
||||||
assertTasksUpToDate(executableTasks)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user