0

I applied jacoco plugin via init.gradle.

What I want to enable is as follows:

  1. test without jacoco
  2. test with jacoco
initscript {
    repositories {
        mavenCentral()
    }
}

allprojects {
    apply plugin: 'java'
    apply plugin: 'jacoco'

    jacoco {
        toolVersion = '0.8.11'
    }

    test {
        jacoco {
            destinationFile = file("$buildDir/jacoco/jacoco.exec")
        }
    }
}

This is my init.gradle. I need just jacoco.exec as the output of jacoco.

I also tried registering new task, but it seems that there is no way to test without jacoco.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.