Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.slamdev.openapi-spring-generator") version "0.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.github.slamdev.openapispringgenerator:plugin:0.2.2")
  }
}

apply(plugin = "com.github.slamdev.openapi-spring-generator")

Using the plugins DSL:

plugins {
  id "com.github.slamdev.openapi-spring-generator" version "0.2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.github.slamdev.openapispringgenerator:plugin:0.2.2"
  }
}

apply plugin: "com.github.slamdev.openapi-spring-generator"

Learn how to apply plugins to subprojects