Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ abstract class CommonCodeWithPlatformSymbolsITBase(
else -> copy(enableJvmIncrementalCompilationOfCommonSources = enabled)
}

private fun BuildOptions.withoutJvmClasspathMetadata(): BuildOptions = when (platformType) {
KotlinPlatformType.jvm -> copy(jvmClasspathMetadata = false)
else -> this
}

private val platformSourceSet = "${platformType.name}Main"

@GradleTest
Expand All @@ -54,7 +59,7 @@ abstract class CommonCodeWithPlatformSymbolsITBase(
project(
"kt-62686-mpp-source-set-boundary",
gradleVersion,
buildOptions = defaultBuildOptions.withUnsafeOptimizationsForMultiplatform(true)
buildOptions = defaultBuildOptions.withUnsafeOptimizationsForMultiplatform(true).withoutJvmClasspathMetadata()
) {
buildScriptInjection(setupBuildScript)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ internal class PropertiesProvider private constructor(private val project: Proje
* giving each non-leaf fragment an isolated dependency view while jvmMain keeps the full JVM classpath.
*/
val enableJvmClasspathMetadata: Provider<Boolean>
get() = booleanProvider(PropertyNames.KOTLIN_INTERNAL_JVM_CLASSPATH_METADATA).orElse(false)
get() = booleanProvider(PropertyNames.KOTLIN_INTERNAL_JVM_CLASSPATH_METADATA).orElse(enableJvmIncrementalCompilationOfCommonSources)

val enableKlibsCrossCompilation: Boolean
get() = booleanProperty(PropertyNames.KOTLIN_NATIVE_ENABLE_KLIBS_CROSSCOMPILATION) ?: true
Expand Down