Search Gradle plugins

Using the plugins DSL:

plugins {
  id("ru.capjack.csi.api") version "1.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("ru.capjack.csi:csi-api-gradle:1.2.1")
  }
}

apply(plugin = "ru.capjack.csi.api")

Using the plugins DSL:

plugins {
  id "ru.capjack.csi.api" version "1.2.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "ru.capjack.csi:csi-api-gradle:1.2.1"
  }
}

apply plugin: "ru.capjack.csi.api"

Learn how to apply plugins to subprojects