Search Gradle plugins

Using the plugins DSL:

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

Using legacy plugin application:

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

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

Using the plugins DSL:

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

Using legacy plugin application:

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

apply plugin: "com.gitlab.svg2ico"

Learn how to apply plugins to subprojects