搜索Gradle插件

使用插件DSL

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

使用旧插件应用

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

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

使用插件DSL

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

使用旧插件应用

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

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

了解如何应用到子项目