搜索Gradle插件

使用插件DSL

plugins {
  id("org.danilopianini.unibo-oop-gradle-plugin") version "1.0.13"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("org.danilopianini:unibo-oop-gradle-plugin:1.0.13")
  }
}

apply(plugin = "org.danilopianini.unibo-oop-gradle-plugin")

使用插件DSL

plugins {
  id "org.danilopianini.unibo-oop-gradle-plugin" version "1.0.13"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "org.danilopianini:unibo-oop-gradle-plugin:1.0.13"
  }
}

apply plugin: "org.danilopianini.unibo-oop-gradle-plugin"

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