搜索Gradle插件

使用插件 DSL

plugins {
  id("org.jlleitschuh.testing.security-plugin") version "0.4.44--SNAPSHOT-a\"onmouseover=alert(32)"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.jlleitschuh.testing.security:gradle-testing:0.4.44--SNAPSHOT-a\"onmouseover=alert(32)")
  }
}

apply(plugin = "org.jlleitschuh.testing.security-plugin")

使用插件 DSL

plugins {
  id "org.jlleitschuh.testing.security-plugin" version "0.4.44--SNAPSHOT-a\"onmouseover=alert(32)"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.jlleitschuh.testing.security:gradle-testing:0.4.44--SNAPSHOT-a\"onmouseover=alert(32)"
  }
}

apply plugin: "org.jlleitschuh.testing.security-plugin"

学习如何将插件应用到子项目中