Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.github.slamdev.swagger") version "0.0.1-SNAPSHOT"
}

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.1-SNAPSHOT")
  }
}

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

Using the plugins DSL:

plugins {
  id "com.github.slamdev.swagger" version "0.0.1-SNAPSHOT"
}

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.1-SNAPSHOT"
  }
}

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

Learn how to apply plugins to subprojects