Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created November 8, 2012 01:46
Show Gist options
  • Save xconnecting/4035959 to your computer and use it in GitHub Desktop.
Save xconnecting/4035959 to your computer and use it in GitHub Desktop.
Sample: use Gradle custom plugin
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'greeting'
buildscript {
repositories { mavenLocal() }
dependencies { classpath 'com.example:greet:1.0-SNAPSHOT' }
}
task hi(type:com.example.GreetingTask){
greeting = 'Hi'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment