jlleitschuh
11/17/2016, 12:03 AMjlleitschuh
11/17/2016, 12:04 AMinclude
returns a PatternFilterable
jlleitschuh
11/17/2016, 12:11 AMjlleitschuh
11/17/2016, 12:46 AMjlleitschuh
11/17/2016, 1:00 AMval operationXsd = file("$psmDir/operations.xsd")
val operationXmlFiles = mainSourceSet.resources.matching(Action<PatternFilterable> {
it.include("operations-*.xml")
})
val resourcesXsd = file("$psmDir/resources.xsd")
val resourcesXmlFiles = mainSourceSet.resources.matching(Action<PatternFilterable> {
it.include("resources-*.xml")
it.exclude("resources-switch-assembly.xml")
})
jlleitschuh
11/17/2016, 1:00 AM// Mixin until gradle is updated to support this
fun FileTree.matching(filterConfigAction: Action<in PatternFilterable>) : FileTree {
val patternSet = PatternSet()
filterConfigAction.execute(patternSet)
return matching(patternSet)
}
tomreay
11/17/2016, 9:49 AMbuildscript {
repositories {
maven {
setUrl("<http://myMaven.etc>")
credentials {
username = "myUsername"
password = "myPassword"
}
}
}
}
bamboo
11/17/2016, 10:55 AMit
as in `it.username = …``and it.password = …
bamboo
11/17/2016, 10:55 AMtomreay
11/17/2016, 10:57 AMtomreay
11/17/2016, 10:57 AMbamboo
11/17/2016, 10:59 AMbamboo
11/17/2016, 10:59 AMbamboo
11/17/2016, 11:00 AMbamboo
11/17/2016, 11:01 AMcredentials
version abovebamboo
11/17/2016, 11:02 AMtomreay
11/17/2016, 11:11 AMtomreay
11/17/2016, 11:11 AMbamboo
11/17/2016, 11:12 AMtomreay
11/17/2016, 11:12 AMbamboo
11/17/2016, 11:17 AMtomreay
11/17/2016, 11:18 AMbamboo
11/17/2016, 11:25 AMbamboo
11/17/2016, 11:25 AMtomreay
11/17/2016, 11:26 AMbamboo
11/17/2016, 11:26 AMtomreay
11/17/2016, 11:26 AMtomreay
11/17/2016, 11:26 AMtomreay
11/17/2016, 12:05 PMbamboo
11/17/2016, 12:06 PM