How to use jacocoTestReport in combinatino with useJunitPlatform

I have a groovy project and run junit tests. I wanted to switch over to use test { useJUnitPlatform() } (using gradle 4.7) but the problem I encounter is that jacocoTestReport does not work anymore, has no effect respectively.
I configure jacocoTestReport as shown in the example (

   test {

    jacocoTestReport {
        reports {
            xml.enabled false
            csv.enabled false
            html.destination file("${buildDir}/jacocoHtml")

What do I need to do that junit and jacoco work together?