what is kts equivalent of `implementation(name: 's...
# gradle
d
what is kts equivalent of
implementation(name: 'some-library-release', ext: 'aar')
? I tried
implementation(name = "some-library-releasee", ext = "aar")
but got
Copy code
None of the following functions can be called with the arguments supplied: 
public fun <T : Dependency> DependencyHandler.implementation(dependency: TypeVariable(T), action: Action<TypeVariable(T)>): TypeVariable(T) defined in org.gradle.kotlin.dsl
public fun DependencyHandler.implementation(dependencyNotation: Any): Dependency? defined in org.gradle.kotlin.dsl
public fun DependencyHandler.implementation(group: String, name: String, version: String? = ..., configuration: String? = ..., classifier: String? = ..., ext: String? = ..., dependencyConfiguration: Action<ExternalModuleDependency>? = ...): ExternalModuleDependency defined in org.gradle.kotlin.dsl
public fun DependencyHandler.implementation(dependencyNotation: String, dependencyConfiguration: Action<ExternalModuleDependency>): ExternalModuleDependency defined in org.gradle.kotlin.dsl
public fun DependencyHandler.implementation(dependencyNotation: Provider<*>, dependencyConfiguration: Action<ExternalModuleDependency>): Unit defined in org.gradle.kotlin.dsl
public fun DependencyHandler.implementation(dependencyNotation: ProviderConvertible<*>, dependencyConfiguration: Action<ExternalModuleDependency>): Unit defined in org.gradle.kotlin.dsl
v
Are you sure that was valid in Groovy? You miss the
group
It was syntactically valid of course, but I mean did it work properly?
d
Yes, it works in groovy
v
Well, then use the same method:
Copy code
implementation(mapOf('name' to 'some-library-release', 'ext' to 'aar'))
But I really wonder what it does without a group.