Created
November 8, 2012 00:54
-
-
Save xconnecting/4035705 to your computer and use it in GitHub Desktop.
Sample: Gradle task class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import org.gradle.api.DefaultTask; | |
import org.gradle.api.tasks.TaskAction; | |
class GreetingTask extends DefaultTask { | |
def greeting = 'Hello' | |
@TaskAction | |
def greet() { | |
println greeting | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment