Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.tngtech.jgiven.gradle-plugin") version "1.3.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.tngtech.jgiven:jgiven-gradle-plugin:1.3.1")
  }
}

apply(plugin = "com.tngtech.jgiven.gradle-plugin")

Using the plugins DSL:

plugins {
  id "com.tngtech.jgiven.gradle-plugin" version "1.3.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.tngtech.jgiven:jgiven-gradle-plugin:1.3.1"
  }
}

apply plugin: "com.tngtech.jgiven.gradle-plugin"

Learn how to apply plugins to subprojects