Search Gradle plugins

org.robin.example.greeting

A simple Gradle Plugin development example

whtacm.cc

Sources: https://github.com/whtacm/GradlePluginSrc

Version 1.0.2 (latest)

1.0.2

Created 28 February 2018.

A simple Gradle Plugin development example

Using the plugins DSL:

plugins {
  id("org.robin.example.greeting") version "1.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("gradle.plugin.org.robin.example.greeting:greeting-plugin-src:1.0.2")
  }
}

apply(plugin = "org.robin.example.greeting")

Using the plugins DSL:

plugins {
  id "org.robin.example.greeting" version "1.0.2"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "gradle.plugin.org.robin.example.greeting:greeting-plugin-src:1.0.2"
  }
}

apply plugin: "org.robin.example.greeting"

Learn how to apply plugins to subprojects