Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.divpundir.mavlink.generator") version "1.2.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.divpundir.mavlink:generator:1.2.0-alpha")
  }
}

apply(plugin = "com.divpundir.mavlink.generator")

Using the plugins DSL:

plugins {
  id "com.divpundir.mavlink.generator" version "1.2.0-alpha"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.divpundir.mavlink:generator:1.2.0-alpha"
  }
}

apply plugin: "com.divpundir.mavlink.generator"

Learn how to apply plugins to subprojects