Search Gradle plugins

Using the plugins DSL:

plugins {
  id("io.freefair.exploded-archives") version "2.6"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("io.freefair.gradle:gradle-plugins:2.6")
  }
}

apply(plugin = "io.freefair.exploded-archives")

Using the plugins DSL:

plugins {
  id "io.freefair.exploded-archives" version "2.6"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "io.freefair.gradle:gradle-plugins:2.6"
  }
}

apply plugin: "io.freefair.exploded-archives"

Learn how to apply plugins to subprojects