Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.kordamp.gradle.java-project") version "0.52.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.kordamp.gradle:java-project-gradle-plugin:0.52.0")
  }
}

apply(plugin = "org.kordamp.gradle.java-project")

Using the plugins DSL:

plugins {
  id "org.kordamp.gradle.java-project" version "0.52.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.kordamp.gradle:java-project-gradle-plugin:0.52.0"
  }
}

apply plugin: "org.kordamp.gradle.java-project"

Learn how to apply plugins to subprojects