Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.jreleaser.jdks") version "1.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.jreleaser:jdks-gradle-plugin:1.4.0")
  }
}

apply(plugin = "org.jreleaser.jdks")

Using the plugins DSL:

plugins {
  id "org.jreleaser.jdks" version "1.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jreleaser:jdks-gradle-plugin:1.4.0"
  }
}

apply plugin: "org.jreleaser.jdks"

Learn how to apply plugins to subprojects