Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.kelin.environment") version "1.6.2-beta"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.kelin.environment:environment:1.6.2-beta")
  }
}

apply(plugin = "com.kelin.environment")

Using the plugins DSL:

plugins {
  id "com.kelin.environment" version "1.6.2-beta"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.kelin.environment:environment:1.6.2-beta"
  }
}

apply plugin: "com.kelin.environment"

Learn how to apply plugins to subprojects