Search Gradle plugins

Using the plugins DSL:

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

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-alpha1")
  }
}

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

Using the plugins DSL:

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

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-alpha1"
  }
}

apply plugin: "io.smallrye.openapi"

Learn how to apply plugins to subprojects