Search Gradle plugins

Using the plugins DSL:

plugins {
  id("nebula.java-cross-compile") version "6.2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.netflix.nebula:gradle-java-cross-compile-plugin:6.2.0")
  }
}

apply(plugin = "nebula.java-cross-compile")

Using the plugins DSL:

plugins {
  id "nebula.java-cross-compile" version "6.2.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.netflix.nebula:gradle-java-cross-compile-plugin:6.2.0"
  }
}

apply plugin: "nebula.java-cross-compile"

Learn how to apply plugins to subprojects