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
+1-1
Original file line number
Diff line number
Diff line change
@@ -148,7 +148,7 @@ private fun kotlinMultiplatformProjectWithBcvSettingsPlugin() =
logger.info("Falling back to Groovy metaprogramming to access to KGP classes ${project.path} https://github.com/adamko-dev/kotlin-binary-compatibility-validator-mu/issues/1")
227
+
val kotlinExtension = project.extensions.findByName("kotlin")
228
+
?:return
229
+
230
+
val targets = kotlinExtension.withGroovyBuilder { "getTargets"() }
231
+
asNamedDomainObjectContainer<*>
232
+
233
+
targets
234
+
.matching { target ->
235
+
val platformType = target.withGroovyBuilder { "getPlatformType"() }
236
+
?:return@matching false
237
+
val platformName = platformType.withGroovyBuilder { "getName"() }
238
+
platformName inlistOf("jvm", "androidJvm")
239
+
}
240
+
.all action@{
241
+
val platformType = withGroovyBuilder { "getPlatformType"() } ?:return@action
242
+
val platformName = platformType.withGroovyBuilder { "getName"() }
243
+
val targetName = withGroovyBuilder { "getTargetName"() }
244
+
val compilations = withGroovyBuilder { "getCompilations"() }
0 commit comments