Search Gradle plugins

Using the plugins DSL:

plugins {
  id("ru.pocketbyte.locolaser") version "2.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("ru.pocketbyte.locolaser:plugin:2.2.1")
  }
}

apply(plugin = "ru.pocketbyte.locolaser")

Using the plugins DSL:

plugins {
  id "ru.pocketbyte.locolaser" version "2.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "ru.pocketbyte.locolaser:plugin:2.2.1"
  }
}

apply plugin: "ru.pocketbyte.locolaser"

Learn how to apply plugins to subprojects