Search Gradle plugins

Using the plugins DSL:

plugins {
  id("name.remal.gitlab-ci") version "1.0.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.name.remal:gradle-plugins:1.0.4")
  }
}

apply(plugin = "name.remal.gitlab-ci")

Using the plugins DSL:

plugins {
  id "name.remal.gitlab-ci" version "1.0.4"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.name.remal:gradle-plugins:1.0.4"
  }
}

apply plugin: "name.remal.gitlab-ci"

Learn how to apply plugins to subprojects