Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.testvagrant.optimuscloud.plugin") version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.testvagrant.optimuscloud:optimus-cloud-gradle-plugin:1.0.0")
  }
}

apply(plugin = "com.testvagrant.optimuscloud.plugin")

Using the plugins DSL:

plugins {
  id "com.testvagrant.optimuscloud.plugin" version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.testvagrant.optimuscloud:optimus-cloud-gradle-plugin:1.0.0"
  }
}

apply plugin: "com.testvagrant.optimuscloud.plugin"

Learn how to apply plugins to subprojects