Search Gradle plugins

Using the plugins DSL:

plugins {
  id("com.gitlab.svg2ico") version "2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("com.gitlab.svg2ico:svg2ico-gradle-plugin:2.2")
  }
}

apply(plugin = "com.gitlab.svg2ico")

Using the plugins DSL:

plugins {
  id "com.gitlab.svg2ico" version "2.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "com.gitlab.svg2ico:svg2ico-gradle-plugin:2.2"
  }
}

apply plugin: "com.gitlab.svg2ico"

Learn how to apply plugins to subprojects