Skip to content

Instantly share code, notes, and snippets.

@sierisimo
Last active November 9, 2018 22:30
Show Gist options
  • Save sierisimo/4829076ac857347de2a2284f7f88f6a1 to your computer and use it in GitHub Desktop.
Save sierisimo/4829076ac857347de2a2284f7f88f6a1 to your computer and use it in GitHub Desktop.
Simplest Gradle Task
tasks.create("runGalleto") {
group = "Galleto Tasks"
description = "Runs the galleto task"
doLast {
println("Hello, I'm Galleto build")
}
}
open class CustomPluginWithTask : Plugin<Project> {
override fun apply(project: Project) {
project.tasks.create("myCustomTask") { task ->
task.group = "My Group"
task.description = "A simple task example"
println("Hello, I'm your plugin")
}
}
}
@sierisimo
Copy link
Author

Created to show my friend @sirgalleto how gradle can be a very simple tool if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment