搜索Gradle插件

使用 插件 DSL

plugins {
  id("pub.ihub.plugin.ihub-publish") version "1.6.6"
}

使用 旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("pub.ihub.plugin:ihub-publish:1.6.6")
  }
}

apply(plugin = "pub.ihub.plugin.ihub-publish")

使用 插件 DSL

plugins {
  id "pub.ihub.plugin.ihub-publish" version "1.6.6"
}

使用 旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "pub.ihub.plugin:ihub-publish:1.6.6"
  }
}

apply plugin: "pub.ihub.plugin.ihub-publish"

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