搜索Gradle插件

使用插件DSL

plugins {
  id("com.github.nagyesta.abort-mission-gradle-plugin") version "5.0.60"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.github.nagyesta.abort-mission:abort-mission-gradle-plugin:5.0.60")
  }
}

apply(plugin = "com.github.nagyesta.abort-mission-gradle-plugin")

使用插件DSL

plugins {
  id "com.github.nagyesta.abort-mission-gradle-plugin" version "5.0.60"
}

使用旧插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.github.nagyesta.abort-mission:abort-mission-gradle-plugin:5.0.60"
  }
}

apply plugin: "com.github.nagyesta.abort-mission-gradle-plugin"

learn how to apply plugins to subprojects