Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects