Search Gradle plugins

Using the plugins DSL:

plugins {
  id("org.hibernate.orm") version "6.1.3.Final"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("org.hibernate.orm:hibernate-gradle-plugin:6.1.3.Final")
  }
}

apply(plugin = "org.hibernate.orm")

Using the plugins DSL:

plugins {
  id "org.hibernate.orm" version "6.1.3.Final"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.hibernate.orm:hibernate-gradle-plugin:6.1.3.Final"
  }
}

apply plugin: "org.hibernate.orm"

Learn how to apply plugins to subprojects