搜索Gradle插件

使用 插件 DSL

plugins {
  id("io.arrow-kt.arrow-gradle-config-publish") version "0.12.0-rc.24"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("io.arrow-kt:arrow-gradle-config-publish:0.12.0-rc.24")
  }
}

apply(plugin = "io.arrow-kt.arrow-gradle-config-publish")

使用 插件 DSL

plugins {
  id "io.arrow-kt.arrow-gradle-config-publish" version "0.12.0-rc.24"
}

使用 旧式插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "io.arrow-kt:arrow-gradle-config-publish:0.12.0-rc.24"
  }
}

apply plugin: "io.arrow-kt.arrow-gradle-config-publish"

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