testCompileOnlyDependencyProcessingForMetadataCompilations -> Gradle 5+

This test fails with Gradle 4.9 due to a Gradle bug when Gradle is
unable to pick up task dependencies from providers nested into a file
collection. That doesn't seem feasible to fix.
This commit is contained in:
Sergey Igushkin
2020-02-28 20:09:19 +03:00
parent b8602fa31a
commit f764d3a021
@@ -396,7 +396,12 @@ class HierarchicalMppIT : BaseGradleIT() {
}
@Test
fun testCompileOnlyDependencyProcessingForMetadataCompilations() = with(Project("hierarchical-mpp-project-dependency")) {
fun testCompileOnlyDependencyProcessingForMetadataCompilations() = with(
Project(
"hierarchical-mpp-project-dependency",
GradleVersionRequired.AtLeast("5.0") // Bug in Gradle versions < 5.0: Gradle can't pick build dependencies from nested provider
)
) {
publishThirdPartyLib(withGranularMetadata = true)
setupWorkingDir()
gradleBuildScript().modify(::transformBuildScriptWithPluginsDsl)