Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.enonic.xp.app") version "3.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.enonic.gradle:xp-gradle-plugin:3.4.0")
  }
}

apply(plugin = "com.enonic.xp.app")

Using the plugins DSL:

plugins {
  id "com.enonic.xp.app" version "3.4.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.enonic.gradle:xp-gradle-plugin:3.4.0"
  }
}

apply plugin: "com.enonic.xp.app"

Learn how to apply plugins to subprojects