搜索 Gradle 插件

使用 plugins DSL

plugins {
  id("com.intershop.gradle.simplepublish-configuration") version "6.3.1"
}

使用 旧插件应用

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

apply(plugin = "com.intershop.gradle.simplepublish-configuration")

使用 plugins DSL

plugins {
  id "com.intershop.gradle.simplepublish-configuration" version "6.3.1"
}

使用 旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.intershop.gradle.publish:gradle-release-plugins:6.3.1"
  }
}

apply plugin: "com.intershop.gradle.simplepublish-configuration"

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