You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/bcv-gradle-plugin-functional-tests/src/functionalTest/kotlin/kotlinx/validation/test/SettingsPluginDslTest.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ private fun kotlinMultiplatformProjectWithBcvSettingsPlugin() =
logger.info("Falling back to dynamic access to KGP classes ${project.path} https://github.com/adamko-dev/kotlin-binary-compatibility-validator-mu/issues/1")
224
+
val kmpExtAny = project.extensions.findByName("kotlin")
225
+
?:return
226
+
227
+
val kmpExt by Dynamic<KotlinTargetsContainerWrapped>(kmpExtAny)
228
+
229
+
kmpExt.targets
230
+
.matching { rawTarget ->
231
+
val target by Dynamic<KotlinTargetWrapped>(rawTarget)
232
+
val platformType by Dynamic<KotlinPlatformTypeWrapped>(target.platformType)
233
+
platformType.name in arrayOf("jvm", "androidJvm")
234
+
}.all {
235
+
val it by Dynamic<KotlinTargetWrapped>(this)
236
+
with(it) {
237
+
val targetPlatformType by Dynamic<KotlinPlatformTypeWrapped>(platformType)
0 commit comments