Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.smallrye.openapi") version "4.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.smallrye:smallrye-open-api-gradle-plugin:4.0.1")
  }
}

apply(plugin = "io.smallrye.openapi")

Using the plugins DSL:

plugins {
  id "io.smallrye.openapi" version "4.0.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.smallrye:smallrye-open-api-gradle-plugin:4.0.1"
  }
}

apply plugin: "io.smallrye.openapi"

Learn how to apply plugins to subprojects