搜索 Gradle 插件

使用插件 DSL

plugins {
  id("com.github.vlsi.stage-vote-release") version "1.90"
}

使用旧的插件应用程序

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.github.vlsi.gradle:stage-vote-release-plugin:1.90")
  }
}

apply(plugin = "com.github.vlsi.stage-vote-release")

使用插件 DSL

plugins {
  id "com.github.vlsi.stage-vote-release" version "1.90"
}

使用旧的插件应用程序

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.github.vlsi.gradle:stage-vote-release-plugin:1.90"
  }
}

apply plugin: "com.github.vlsi.stage-vote-release"

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