Ilya Muradyan
05/02/2020, 6:00 PMfun DependencyHandler.kotlin(module: String, version: String? = null): Any =
"org.jetbrains.kotlin:kotlin-$module${version?.let { ":$version" } ?: ""}"
Why does it return Any? It becomes a problem when I use this overload of implementation
:
implementation(kotlin("...")) { isTransitive = false }
In this variant, implementation
takes String
as a first argument and I need to explicitely cast return value to String
octylFractal
05/02/2020, 6:02 PMIlya Muradyan
05/02/2020, 6:05 PMgregorbg
05/03/2020, 6:51 AMimplementation(kotlin("...").toString())
Ilya Muradyan
05/03/2020, 8:26 AM