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 kmpExtAny = project.extensions.findByName("kotlin")
228
+
?:return
229
+
230
+
val targets = kmpExtAny.withGroovyBuilder { "getTargets"() }
231
+
asNamedDomainObjectContainer<*>
232
+
233
+
targets
234
+
.matching { target ->
235
+
val platformType = target.withGroovyBuilder { "getPlatformType"() }
236
+
?:return@matching false
237
+
platformType.withGroovyBuilder {
238
+
val name ="getName"()
239
+
name inlistOf("jvm", "androidJvm")
240
+
}
241
+
}
242
+
.all action@{
243
+
val platformType = withGroovyBuilder { "getPlatformType"() } ?:return@action
244
+
val platformTypeName = platformType.withGroovyBuilder { "getName"() }
245
+
val targetName = withGroovyBuilder { "getTargetName"() }// as String
246
+
val compilations = withGroovyBuilder { "getCompilations"() }
0 commit comments