Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.smallrye.openapi") version "4.0.0-alpha2"
}

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.0-alpha2")
  }
}

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

Using the plugins DSL:

plugins {
  id "io.smallrye.openapi" version "4.0.0-alpha2"
}

Using legacy plugin application:

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

apply plugin: "io.smallrye.openapi"

Learn how to apply plugins to subprojects