Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.nbaztec.coveralls-jacoco") version "1.0.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.nbaztec:coveralls-jacoco-gradle-plugin:1.0.5")
  }
}

apply(plugin = "com.github.nbaztec.coveralls-jacoco")

Using the plugins DSL:

plugins {
  id "com.github.nbaztec.coveralls-jacoco" version "1.0.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.nbaztec:coveralls-jacoco-gradle-plugin:1.0.5"
  }
}

apply plugin: "com.github.nbaztec.coveralls-jacoco"

Learn how to apply plugins to subprojects