Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.serenity-bdd.serenity-gradle-plugin") version "4.2.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("net.serenity-bdd:serenity-gradle-plugin:4.2.8")
  }
}

apply(plugin = "net.serenity-bdd.serenity-gradle-plugin")

Using the plugins DSL:

plugins {
  id "net.serenity-bdd.serenity-gradle-plugin" version "4.2.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "net.serenity-bdd:serenity-gradle-plugin:4.2.8"
  }
}

apply plugin: "net.serenity-bdd.serenity-gradle-plugin"

Learn how to apply plugins to subprojects