This file contains hidden or 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
import metridoc.core.Step | |
step(foo: "I am foo") { | |
println "I am from foo" | |
} | |
step(bar: "I am bar") { | |
depends "foo" | |
println "I am from foo" |
This file contains hidden or 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
import javax.naming.Context | |
import javax.naming.directory.InitialDirContext | |
import javax.naming.directory.SearchControls | |
/** | |
* Created with IntelliJ IDEA on 7/18/13 | |
* @author Tommy Barker | |
*/ | |
def config = new ConfigSlurper().parse(new File("${System.getProperty("user.home")}/.metridoc/MetridocConfig.groovy").toURI().toURL()) |
This file contains hidden or 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 BintrayGenericUpload extends DefaultTask { | |
@InputFile | |
File artifactFile | |
@Input | |
String artifactUrl | |
@TaskAction | |
def publish() { |
This file contains hidden or 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
task uploadToBintray(dependsOn: ["prepareForBintrayUpload", "publishBintrayPackages"]) | |
task prepareForBintrayUpload << { | |
if (version.contains("SNAPSHOT")) { | |
println "bintray does not support SNAPSHOTs, skipping upload to bintray" | |
uploadArchives.enabled = false | |
publishBintrayPackages.enabled = false | |
return | |
} |
This file contains hidden or 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
import groovy.json.JsonBuilder | |
//make sure you have installed groovy | |
//best way to install groovy: http://gvmtool.net/ | |
def carRecords = ''' | |
<records> | |
<car name='HSV Maloo' make='Holden' year='2006'> | |
<country>Australia</country> |