搜索Gradle插件

使用plugins DSL

plugins {
  id("org.danilopianini.multi-jvm-test-plugin") version "1.2.4"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("org.danilopianini:multi-jvm-test-plugin:1.2.4")
  }
}

apply(plugin = "org.danilopianini.multi-jvm-test-plugin")

使用plugins DSL

plugins {
  id "org.danilopianini.multi-jvm-test-plugin" version "1.2.4"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "org.danilopianini:multi-jvm-test-plugin:1.2.4"
  }
}

apply plugin: "org.danilopianini.multi-jvm-test-plugin"

了解如何将插件应用到子项目中