Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.hidetake.swagger.generator") version "2.5.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.hidetake:gradle-swagger-generator-plugin:2.5.3")
  }
}

apply(plugin = "org.hidetake.swagger.generator")

Using the plugins DSL:

plugins {
  id "org.hidetake.swagger.generator" version "2.5.3"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.hidetake:gradle-swagger-generator-plugin:2.5.3"
  }
}

apply plugin: "org.hidetake.swagger.generator"

Learn how to apply plugins to subprojects