JaCoCo with Kotlin Multiplatform

I started a Compose for Desktop Multiplatform project based on this template: compose-jb/templates/multiplatform-template at master · JetBrains/compose-jb · GitHub

Everything works fine except that I’m unable to generate JaCoCo reports. The “jaCoCoTestReport” tasks does not get created. I tried different things without success. I guess it has something to do with the android library or the fact that the java plugin can’t be added, but I’m not sure.

Most tutorials I found are outdated or did not work.

Does someone have a KMM project with Android and can point me to a working sample how to create JaCoCo reports?