Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.hedera.pbj.pbj-compiler") version "0.9.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.hedera.pbj:pbj-compiler:0.9.2")
  }
}

apply(plugin = "com.hedera.pbj.pbj-compiler")

Using the plugins DSL:

plugins {
  id "com.hedera.pbj.pbj-compiler" version "0.9.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.hedera.pbj:pbj-compiler:0.9.2"
  }
}

apply plugin: "com.hedera.pbj.pbj-compiler"

Learn how to apply plugins to subprojects