Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.slamdev.swagger") version "0.0.14"
}

Using legacy plugin application:

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

apply(plugin = "com.github.slamdev.swagger")

Using the plugins DSL:

plugins {
  id "com.github.slamdev.swagger" version "0.0.14"
}

Using legacy plugin application:

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

apply plugin: "com.github.slamdev.swagger"

Learn how to apply plugins to subprojects