To solve my problem here: Applying JaCoCo to all Android Studio gradle modules, I applied the solution here. This works fine so far for modules with plugins {
googlebot
sonos
icpx
fluent
platformio
javaimports
memory-fragmentation
apache-commons-lang3
selenium4
css3pie
draftail
beegfs
secp256r1
srecord
libreoffice-writer
policy-violation
samsung-health
wdf
http-parameters
netbeans-8
load-csv
formsets
lucene.net
python-sql
pcspim
headerfooter
session-storage
smb
content-assist
git-grep