搜索Gradle插件

使用插件DSL

plugins {
  id("com.intershop.gradle.scmversion") version "7.0.0"
}

使用老式插件应用

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

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

使用插件DSL

plugins {
  id "com.intershop.gradle.scmversion" version "7.0.0"
}

使用老式插件应用

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

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

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