Fix Gradle Integration Tests MPP and Android on MacOS
This commit is contained in:
committed by
TeamCityServer
parent
600529fe21
commit
f8dd1b3512
+7
-1
@@ -5,6 +5,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.gradle
|
||||
|
||||
import org.gradle.api.logging.configuration.WarningMode
|
||||
import org.jetbrains.kotlin.gradle.internals.MULTIPLATFORM_PROJECT_METADATA_JSON_FILE_NAME
|
||||
import org.jetbrains.kotlin.gradle.internals.parseKotlinSourceSetMetadataFromJson
|
||||
import org.jetbrains.kotlin.gradle.native.transformNativeTestProjectWithPluginDsl
|
||||
@@ -213,7 +214,12 @@ class HierarchicalMppIT : BaseGradleIT() {
|
||||
|
||||
@Test
|
||||
fun testMultiModulesHmppKt48370() = with(Project("hierarchical-mpp-multi-modules", GradleVersionRequired.FOR_MPP_SUPPORT)) {
|
||||
build("assemble", options = defaultBuildOptions().copy(parallelTasksInProject = true)) {
|
||||
build(
|
||||
"assemble", options = defaultBuildOptions().copy(
|
||||
parallelTasksInProject = true,
|
||||
warningMode = WarningMode.Summary
|
||||
)
|
||||
) {
|
||||
assertSuccessful()
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -139,7 +139,10 @@ class Kapt3Android42IT : Kapt3BaseIT() {
|
||||
get() = GradleVersionRequired.AtLeast("6.7.1")
|
||||
|
||||
override fun defaultBuildOptions(): BuildOptions =
|
||||
super.defaultBuildOptions().copy(androidGradlePluginVersion = AGPVersion.v4_2_0)
|
||||
super.defaultBuildOptions().copy(
|
||||
androidHome = KtTestUtil.findAndroidSdk(),
|
||||
androidGradlePluginVersion = AGPVersion.v4_2_0
|
||||
)
|
||||
|
||||
/** Regression test for https://youtrack.jetbrains.com/issue/KT-44020. */
|
||||
@Test
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ internal object MPPNativeTargets {
|
||||
val unsupported = when {
|
||||
HostManager.hostIsMingw -> listOf("macos64")
|
||||
HostManager.hostIsLinux -> listOf("macos64", "mingw64")
|
||||
HostManager.hostIsMac -> listOf("mingw64")
|
||||
HostManager.hostIsMac -> listOf("linuxMipsel32")
|
||||
else -> error("Unknown host")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ kotlin {
|
||||
targets.all {
|
||||
compilations.all {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += ["-Xprogressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions", "-Xuse-experimental=kotlin.ExperimentalMultiplatform", "-Xskip-prerelease-check"]
|
||||
freeCompilerArgs += ["-progressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions", "-opt-in=kotlin.ExperimentalMultiplatform", "-Xskip-prerelease-check"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ dependencies {
|
||||
[compileKotlin, compileTestKotlin]*.configure {
|
||||
kotlinOptions {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
freeCompilerArgs += ["-Xprogressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions"]
|
||||
freeCompilerArgs += ["-progressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -69,7 +69,7 @@ kotlin {
|
||||
targets.all {
|
||||
compilations.all {
|
||||
kotlinOptions {
|
||||
freeCompilerArgs += ["-Xprogressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions", "-Xuse-experimental=kotlin.ExperimentalMultiplatform"]
|
||||
freeCompilerArgs += ["-progressive", "-XXLanguage:+NewInference", "-XXLanguage:+SamConversionForKotlinFunctions", "-opt-in=kotlin.ExperimentalMultiplatform"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user