Skip to content

Commit 4267086

Browse files
committed
Add extension for versionSelector on VersionCatalogConfig for Kotlin dsl
1 parent a5ee62f commit 4267086

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

plugin/src/main/kotlin/nl/littlerobots/vcu/plugin/VersionCatalogUpdateExtension.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,11 @@ fun VersionCatalogUpdateExtension.versionSelector(block: (ModuleVersionCandidate
120120
}
121121
})
122122
}
123+
124+
fun VersionCatalogConfig.versionSelector(block: (ModuleVersionCandidate) -> Boolean) {
125+
this.versionSelector(object : ModuleVersionSelector {
126+
override fun select(candidate: ModuleVersionCandidate): Boolean {
127+
return block(candidate)
128+
}
129+
})
130+
}

0 commit comments

Comments
 (0)