Search Gradle plugins

Using the plugins DSL:

plugins {
  id("xyz.urbanmatrix.mavlink.generator") version "0.16.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("xyz.urbanmatrix.mavlink:generator:0.16.8")
  }
}

apply(plugin = "xyz.urbanmatrix.mavlink.generator")

Using the plugins DSL:

plugins {
  id "xyz.urbanmatrix.mavlink.generator" version "0.16.8"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "xyz.urbanmatrix.mavlink:generator:0.16.8"
  }
}

apply plugin: "xyz.urbanmatrix.mavlink.generator"

Learn how to apply plugins to subprojects