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
// Create the task | |
// The declare the task and adds a body that will be executed everytime the tasks is executed | |
// Variables pushed in as configuration can be referenced here | |
// | |
// This simple tasks will write a text file containing a list of files | |
// in a source set. It will also only update the output file, if at least one | |
// source file has changed. | |
task myTask << { | |
outputs.file.singleFile.withWriter { out -> | |
inputs.sourceFiles.each { |
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
// FOR THE IMPATIENT: Final solution at the end | |
// Classic Ivy style to publish to Bintray. | |
// This requires the package to be pre-created, possibly by manual process on website | |
// or via call such as https://github.com/ysb33r/Gradle/blob/master/buildSrc/src/main/groovy/BintrayPackage.groovy | |
uploadArchives { | |
repositories { | |
ivy { | |
url 'http://api.bintray.com/ysb33r/grysb33r/gnumake-gradle-plugin/0.0.3' | |
credentials { |
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
class GnuMake extends DefaultTask { | |
@Input | |
@Optional | |
List<String> targets | |
@Input | |
@Optional | |
Map<String,Object> flags = [:] | |
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
println ((0..<100).step(7).collect{it*it}.sum()) |
NewerOlder