Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.enonic.xp.base") version "3.5.1"
}

Using legacy plugin application:

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

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

Using the plugins DSL:

plugins {
  id "com.enonic.xp.base" version "3.5.1"
}

Using legacy plugin application:

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

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

Learn how to apply plugins to subprojects