Repository: JetBrains/kotlin
File: libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle/ComposeIT.kt (Kotlin)

Code before:
                }
                val composeExtension = project.extensions.getByType<ComposeCompilerGradlePluginExtension>()
                composeExtension.includeComposeMappingFile.set(false)
            }

            build("assembleRelease") {
                assertTasksAreNotInTaskGraph(
                    ":produceReleaseComposeMapping",
                    ":mergeReleaseComposeMapping"
                )
            }
        }
    }

    @DisplayName("CMP-9167 verification")
    @GradleAndroidTest
    @AndroidTestVersions(minVersion = TestVersions.AGP.AGP_811, maxVersion = TestVersions.AGP.AGP_811)
    @OtherGradlePluginTests
    @TestMetadata("composeMultiplatform")
    fun testComposeDefaultValueParamStubs(
        gradleVersion: GradleVersion,
        agpVersion: String,
        providedJdk: JdkVersions.ProvidedJdk
    ) {
        project(
            projectName = "composeMultiplatform",
            gradleVersion = gradleVersion,
            buildJdk = providedJdk.location,
            buildOptions = defaultBuildOptions.copy(
                androidVersion = agpVersion,
                nativeOptions = super.defaultBuildOptions.nativeOptions.copy(
                    version = TestVersions.Kotlin.CURRENT
                ),
                isolatedProjects = BuildOptions.IsolatedProjectsMode.DISABLED
            ),
            dependencyManagement = DependencyManagement.DefaultDependencyManagement(setOf("https://maven.pkg.jetbrains.space/public/p/compose/dev")),
            enableGradleDaemonMemoryLimitInMb = 2048,
            enableKotlinDaemonMemoryLimitInMb = 2048,
        ) {
            buildGradleKts.appendComposePlugin()

            val sourceFile = projectPath.resolve("src/commonMain/kotlin/com/example/App.kt")
            sourceFile.writeText(
                //language=kotlin
                """
                package com.example
                
                import androidx.compose.runtime.Composable
                import kotlin.jvm.JvmInline
                
                @JvmInline

Review comment (security):
Could you use build script injection approach in this test? See `BuildScriptInjectionIT` for examples.

Code after:
                    }
                }
                val composeExtension = project.extensions.getByType<ComposeCompilerGradlePluginExtension>()
                composeExtension.includeComposeMappingFile.set(false)
            }

            build("assembleRelease") {
                assertTasksAreNotInTaskGraph(
                    ":produceReleaseComposeMapping",
                    ":mergeReleaseComposeMapping"
                )
            }
        }
    }

    @DisplayName("CMP-9167 verification")
    @GradleTest
    @OtherGradlePluginTests
    fun testComposeDefaultValueParamStubs(
        gradleVersion: GradleVersion,
    ) {
        project(
            projectName = "empty",
            gradleVersion = gradleVersion,
            buildOptions = defaultBuildOptions.copy(
                nativeOptions = super.defaultBuildOptions.nativeOptions.copy(
                    version = TestVersions.Kotlin.CURRENT
                ),
                isolatedProjects = BuildOptions.IsolatedProjectsMode.DISABLED
            ),
            dependencyManagement = DependencyManagement.DefaultDependencyManagement(setOf("https://maven.pkg.jetbrains.space/public/p/compose/dev")),
            enableGradleDaemonMemoryLimitInMb = 2048,
            enableKotlinDaemonMemoryLimitInMb = 2048,
        ) {
            plugins {
                id("org.jetbrains.kotlin.plugin.compose")
            }
            buildScriptInjection {
                project.applyMultiplatform {
                    listOf(
                        iosArm64(),
                        iosSimulatorArm64()
                    ).forEach { iosTarget ->
                        iosTarget.binaries.framework {
                            baseName = "ComposeApp"
                            isStatic = true
                        }
                    }
                    jvm()

                    @OptIn(ExperimentalWasmDsl::class)