Search Gradle plugins

Using the plugins DSL:

plugins {
  id("net.bytebuddy.byte-buddy-gradle-plugin") version "1.11.14"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.net.bytebuddy:byte-buddy-gradle-plugin:1.11.14")
  }
}

apply(plugin = "net.bytebuddy.byte-buddy-gradle-plugin")

Using the plugins DSL:

plugins {
  id "net.bytebuddy.byte-buddy-gradle-plugin" version "1.11.14"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.net.bytebuddy:byte-buddy-gradle-plugin:1.11.14"
  }
}

apply plugin: "net.bytebuddy.byte-buddy-gradle-plugin"

Learn how to apply plugins to subprojects