Initial support for enforcedPlatform in Gradle MPP config

This commit is contained in:
Sebastian Aigner
2022-06-30 16:31:59 +02:00
committed by Space
parent ef482bb126
commit 39844af876
2 changed files with 44 additions and 0 deletions
@@ -56,6 +56,12 @@ interface KotlinDependencyHandler {
fun project(notation: Map<String, Any?>): ProjectDependency
fun enforcedPlatform(notation: Any): Dependency =
project.dependencies.enforcedPlatform(notation)
fun enforcedPlatform(notation: Any, configureAction: Action<in Dependency>): Dependency =
project.dependencies.enforcedPlatform(notation, configureAction)
@Deprecated("Declaring NPM dependency without version is forbidden")
fun npm(name: String): Dependency