Search Gradle plugins

Version 5.0.3 (latest)

Created 31 October 2024.

Sets up JaCoCo for the JUnit 5 Platform

Add this plugin to your build using the plugins DSL:

plugins {
  id("ch.tutteli.gradle.plugins.junitjacoco") version "5.0.3"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("ch.tutteli.gradle.plugins.junitjacoco:ch.tutteli.gradle.plugins.junitjacoco.gradle.plugin:5.0.3")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("ch.tutteli.gradle.plugins.junitjacoco")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("ch.tutteli.gradle.plugins.junitjacoco:ch.tutteli.gradle.plugins.junitjacoco.gradle.plugin:5.0.3")
      }
    }
    
    apply(plugin = "ch.tutteli.gradle.plugins.junitjacoco")
  • Applying plugins to all subprojects .