I want to configure plugin only if property is ava...
# community-support
e
I want to configure plugin only if property is available. That works with groovy by kotlin compilation fails. I'm trying next
Copy code
if (project.hasProperty("runPitest")) {
    pitest {
The error is
Unresolved reference: pitest
j
If you are using Kotlin DSL,
pitest
fails as you cannot use the accessor.
e
Thanks!