Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.ca.apim.gateway.gateway-export-plugin") version "1.0.3-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.ca.apim.gateway:gateway-export-plugin:1.0.3-SNAPSHOT")
  }
}

apply(plugin = "com.ca.apim.gateway.gateway-export-plugin")

Using the plugins DSL:

plugins {
  id "com.ca.apim.gateway.gateway-export-plugin" version "1.0.3-SNAPSHOT"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.ca.apim.gateway:gateway-export-plugin:1.0.3-SNAPSHOT"
  }
}

apply plugin: "com.ca.apim.gateway.gateway-export-plugin"

Learn how to apply plugins to subprojects