This message was deleted.
# community-support
s
This message was deleted.
t
are you referring to its maven coordinates? test kit is part of the gradle distribution. (I think)
j
yes, and the repo, I tried in maven central and in this repo https://repo.gradle.org/ but I can't find the last one
j
yeah, I have tried to follow that trace or even trying to create it, but it uses private things
Basically in JVM projects, the dependencies scope is generated and the block context is
DependencyHandlerScope
meanwhile the block for Kotlin source sets is
KotlinDependencyHandler
, so I am unable to call
gradleTestKit
from there
e
it's extracted from within the Gradle distribution, it's not on maven central or the plugin portal
yeah, you can't use it from the KMP dependencies block, but it's JVM-only anyway
j
yep, but I was trying to unify setups and I was following the kmp approach
curiously
gradleKotlinDsl
can be used with no issues due to the current implementation:
Copy code
fun Project.gradleKotlinDsl(): Dependency =
    DefaultSelfResolvingDependency(
        OpaqueComponentIdentifier(DependencyFactory.ClassPathNotation.GRADLE_KOTLIN_DSL),
        project.fileCollectionOf(
            gradleKotlinDslOf(project),
            "gradleKotlinDsl"
        ) as FileCollectionInternal
    )
t
Have you tried with
dependencies.gradleTestKit()
?
j
Nice one, thank you 🙂