搜索Gradle插件

使用插件DSL

plugins {
  id("com.intershop.icm.cartridge.container") version "6.2.0"
}

使用旧插件应用

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

apply(plugin = "com.intershop.icm.cartridge.container")

使用插件DSL

plugins {
  id "com.intershop.icm.cartridge.container" version "6.2.0"
}

使用旧插件应用

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

apply plugin: "com.intershop.icm.cartridge.container"

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