Jon Bayle
11/12/2024, 10:27 AMimplementation(kotlin("test"))
to the dependencies of the IntegrationTest
suite.
It seems that the kotlin extensions do not support this yet.
How can I add kotlin-test without kotlin("test")
in gradle?
Thanks!Javier
11/12/2024, 10:32 AMorg.jetbrains.kotlin:kotlin-
Jon Bayle
11/12/2024, 11:00 AMfun JvmComponentDependencies.kotlin(module: String, version: String? = null): String =
"org.jetbrains.kotlin:kotlin-$module${version?.let { ":${'$'}version" } ?: ""}"
Problem solved, thanksephemient
11/12/2024, 4:32 PM"${'$'}version"
doesn't look right, you're never actually substituting version
ephemient
11/12/2024, 4:33 PMfun kotlin(simpleModuleName: String, version: String?): ExternalModuleDependency =
project.dependencies.create(
"org.jetbrains.kotlin:kotlin-$simpleModuleName" + version?.let { ":$it" }.orEmpty()
) as ExternalModuleDependency