Gradle: Don't use the deprecated "layout" method for Ivy repos
Issue #KT-30258 fixed
This commit is contained in:
+13
@@ -1303,6 +1303,8 @@ class NewMultiplatformIT : BaseGradleIT() {
|
||||
build("tasks") {
|
||||
assertSuccessful()
|
||||
assertTrue(output.contains("Kotlin/Native distribution: "))
|
||||
// Check for KT-30258.
|
||||
assertFalse(output.contains("Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."))
|
||||
}
|
||||
|
||||
build("tasks", "-Pkotlin.native.restrictedDistribution=true") {
|
||||
@@ -1348,6 +1350,17 @@ class NewMultiplatformIT : BaseGradleIT() {
|
||||
assertContains("Project property 'org.jetbrains.kotlin.native.version' is deprecated")
|
||||
}
|
||||
}
|
||||
|
||||
// Gradle 5.0 introduced a new API for Ivy repository layouts.
|
||||
// MPP plugin uses this API to download K/N if Gradle version is >= 5.0.
|
||||
// Check this too (see KT-30258).
|
||||
with(Project("new-mpp-native-libraries", GradleVersionRequired.AtLeast("5.0"))) {
|
||||
build("tasks", "-Pkotlin.native.version=1.3.50-eap-11606") {
|
||||
assertSuccessful()
|
||||
assertTrue(output.contains("Kotlin/Native distribution: "))
|
||||
assertFalse(output.contains("Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user