File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
libraries/tools/kotlin-gradle-plugin-integration-tests/src/test/kotlin/org/jetbrains/kotlin/gradle Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import org.jetbrains.kotlin.gradle.report.BuildReportType
17
17
import org.jetbrains.kotlin.gradle.testbase.*
18
18
import org.jetbrains.kotlin.gradle.testbase.BuildOptions.IsolatedProjectsMode
19
19
import org.jetbrains.kotlin.gradle.testbase.TestVersions.ThirdPartyDependencies.GRADLE_ENTERPRISE_PLUGIN_VERSION
20
+ import org.jetbrains.kotlin.gradle.uklibs.applyMultiplatform
20
21
import org.jetbrains.kotlin.gradle.util.BuildOperationRecordImpl
21
22
import org.jetbrains.kotlin.gradle.util.readJsonReport
22
23
import org.jetbrains.kotlin.gradle.util.replaceText
@@ -870,18 +871,11 @@ class BuildReportsIT : KGPBaseTest() {
870
871
buildReport = listOf (BuildReportType .JSON )
871
872
)
872
873
) {
873
- buildGradleKts.appendText(
874
- """
875
- |
876
- |kotlin {
877
- | tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
878
- | compilerOptions {
879
- | freeCompilerArgs.add("-XXLanguage:+IrInlinerBeforeKlibSerialization")
880
- | }
881
- | }
882
- |}
883
- """ .trimMargin()
884
- )
874
+ buildScriptInjection {
875
+ project.applyMultiplatform {
876
+ compilerOptions.freeCompilerArgs.add(" -XXLanguage:+IrInlinerBeforeKlibSerialization" )
877
+ }
878
+ }
885
879
build(" linkDebugExecutableHost" , " -Pkotlin.build.report.json.directory=${projectPath.resolve(" report" ).pathString} " ) {
886
880
val jsonReportFile = projectPath.getSingleFileInDir(" report" )
887
881
assertTrue { jsonReportFile.exists() }
You can’t perform that action at this time.
0 commit comments