Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects