Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.opentelemetry.instrumentation.muzzle-generation") version "2.9.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.opentelemetry.instrumentation:gradle-plugins:2.9.0-alpha")
  }
}

apply(plugin = "io.opentelemetry.instrumentation.muzzle-generation")

Using the plugins DSL:

plugins {
  id "io.opentelemetry.instrumentation.muzzle-generation" version "2.9.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.opentelemetry.instrumentation:gradle-plugins:2.9.0-alpha"
  }
}

apply plugin: "io.opentelemetry.instrumentation.muzzle-generation"

Learn how to apply plugins to subprojects