Closed alosdev closed 8 months ago
Hi,
in this place function operator fun <T> Action<in T>.invoke(target: T) = execute(target)
from org.gradle.gradle.kotlin-dsl
is used.
Please try to apply kotlin-dsl
plugin in your convention plugin
hmm. that means I have to rewrite my custom plugins so I could make it testable...
As this is just a tiny part of my plugin.
I have to think about how to make it kotlin-dsl compatible in some parts or extracting the kover part in an own custom convention plugin.
Alternatively, you can add kotlin-dsl
to the classpath of ProjectBuilder
thanks for the hint. Adding this to the dependencies helped
testRuntimeOnly(gradleKotlinDsl())
Describe the bug When the kover gradle plugin is pre-configured in my custom gradle plugin, I cannot make a successful test run.
Errors
Expected behavior test runs successfully
Reproducer custom convention Plugin:
the test for the plugin:
Environment
Note My wild guess is that the implementation is internal instead of public.