搜索Gradle插件

使用 插件 DSL

plugins {
  id("com.intershop.gradle.artifactorypublish-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.artifactorypublish-configuration")

使用 插件 DSL

plugins {
  id "com.intershop.gradle.artifactorypublish-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.artifactorypublish-configuration"

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