搜索Gradle插件

使用插件块(plugins DSL)

plugins {
  id("luisrjaeger.airwatch-publishing") version "0.1.1"
}

使用旧插件应用(legacy plugin application)

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("br.com.luisrjaeger:airwatch-publishing:0.1.1")
  }
}

apply(plugin = "luisrjaeger.airwatch-publishing")

使用插件块(plugins DSL)

plugins {
  id "luisrjaeger.airwatch-publishing" version "0.1.1"
}

使用旧插件应用(legacy plugin application)

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "br.com.luisrjaeger:airwatch-publishing:0.1.1"
  }
}

apply plugin: "luisrjaeger.airwatch-publishing"

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