If you mean project properties:

task foo(type: GradleBuild) {
    startParameter.projectProperties = gradle.startParameter.projectProperties
}


If you mean system properties, replace projectProperties with systemPropertiesArgs (on both sides).

Can I pass along all properties when for a GradleBuild task?
Which is the best introductory textbook for Bayesian statistics?

One book per answer, please.
