搜索Gradle插件

使用插件DSL

plugins {
  id("com.opitzconsulting.orcas.orcas-gradle-plugin") version "8.5.1"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.opitzconsulting.orcas:orcas-gradle-plugin:8.5.1")
  }
}

apply(plugin = "com.opitzconsulting.orcas.orcas-gradle-plugin")

使用插件DSL

plugins {
  id "com.opitzconsulting.orcas.orcas-gradle-plugin" version "8.5.1"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.opitzconsulting.orcas:orcas-gradle-plugin:8.5.1"
  }
}

apply plugin: "com.opitzconsulting.orcas.orcas-gradle-plugin"

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