Nikky
07/09/2019, 9:32 AMDefaultKotlinDependencyHandler
seems to not handle things that the nromal dependencies block ca.. or maybe its just the kts bit thats broken ?h0tk3y
07/09/2019, 2:18 PMKotlinDependencyHandler
is indeed a different construct than the Gradle's built-in dependencies DSL.
In short, a KotlinDependencyHandler
translates dependencies that you add to ordinary Gradle dependencies in underlying configurations, so it is an abstraction layer for dependencies of Kotlin source sets. Therefore, it doesn't support custom confiugurations and can only handle dependencies with predefined scopes: api
, implementation
, compileOnly
, runtimeOnly
.
Use api
as an equivalent for the Gradle's compile
configuration.
For custom configurations, use the top-level dependencies { ... }
block rather than the dependencies of the Kotlin source sets.Nikky
07/09/2019, 2:25 PM