Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.openrewrite.build.language-library") version "1.9.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.openrewrite:rewrite-build-gradle-plugin:1.9.5")
  }
}

apply(plugin = "org.openrewrite.build.language-library")

Using the plugins DSL:

plugins {
  id "org.openrewrite.build.language-library" version "1.9.5"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.openrewrite:rewrite-build-gradle-plugin:1.9.5"
  }
}

apply plugin: "org.openrewrite.build.language-library"

Learn how to apply plugins to subprojects