搜索Gradle插件

使用插件DSL

plugins {
  id("io.cloudflight.autoconfigure.swagger-codegen-configure") version "1.1.1"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org.cn/m2/")
    }
  }
  dependencies {
    classpath("io.cloudflight.gradle:autoconfigure:1.1.1")
  }
}

apply(plugin = "io.cloudflight.autoconfigure.swagger-codegen-configure")

使用插件DSL

plugins {
  id "io.cloudflight.autoconfigure.swagger-codegen-configure" version "1.1.1"
}

使用旧版插件应用

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org.cn/m2/"
    }
  }
  dependencies {
    classpath "io.cloudflight.gradle:autoconfigure:1.1.1"
  }
}

apply plugin: "io.cloudflight.autoconfigure.swagger-codegen-configure"

学习如何应用到子项目中