Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects