搜索Gradle插件

使用 plugins DSL

plugins {
  id("com.intershop.gradle.icm") version "1.0.0-dev22"
}

使用 旧的插件应用程序

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.intershop.gradle.icm:icm-gradle-plugin:1.0.0-dev22")
  }
}

apply(plugin = "com.intershop.gradle.icm")

使用 plugins DSL

plugins {
  id "com.intershop.gradle.icm" version "1.0.0-dev22"
}

使用 旧的插件应用程序

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.intershop.gradle.icm:icm-gradle-plugin:1.0.0-dev22"
  }
}

apply plugin: "com.intershop.gradle.icm"

学习如何向子项目应用插件