搜索Gradle插件

使用插件DSL

plugins {
  id("com.sngular.scs-multiapi-gradle-plugin") version "5.4.3"
}

使用旧插件应用程序

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("com.sngular:scs-multiapi-gradle-plugin:5.4.3")
  }
}

apply(plugin = "com.sngular.scs-multiapi-gradle-plugin")

使用插件DSL

plugins {
  id "com.sngular.scs-multiapi-gradle-plugin" version "5.4.3"
}

使用旧插件应用程序

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "com.sngular:scs-multiapi-gradle-plugin:5.4.3"
  }
}

apply plugin: "com.sngular.scs-multiapi-gradle-plugin"

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