Just upgraded to m9 and trying to fix our build that had some deprecated/removed stuff in it. Running into an issue that’s stumping me a bit. Below is a sample build file that fails with the message: “Could not find property ‘all’ on SourceSet container.” Now, it’s seems to be there in the docs so I must be using it wrong or something.
apply plugin: ‘scala’
group = “foo.bar”
groupId = group
artifactId = “baz”
version = “0.1”
jar {
baseName = artifactId
}
afterEvaluate {
configure(allProcessResourcesTasks()) {
filter(org.apache.tools.ant.filters.ReplaceTokens, tokens: [‘project_version’: “${project.version}”.toString()])
}
}
def allProcessResourcesTasks() {
sourceSets.all.processResourcesTaskName.collect {
tasks[it]
}
}
Happy to give more detail as needed.
Cheers, Eric