搜索 Gradle 插件

使用 插件 DSL

plugins {
  id("com.auth0.gradle.oss-library.java") version "0.18.0"
}

使用 旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.auth0.gradle:oss-library:0.18.0")
  }
}

apply(plugin = "com.auth0.gradle.oss-library.java")

使用 插件 DSL

plugins {
  id "com.auth0.gradle.oss-library.java" version "0.18.0"
}

使用 旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.auth0.gradle:oss-library:0.18.0"
  }
}

apply plugin: "com.auth0.gradle.oss-library.java"

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