[Multi-project] pass property to tasks

Hi,

When I execute in prompt

I have project 1

./gradlew -Ptext=“toto”
=> I work perfectely


Now I have multi project (for example 2 projects : MainProject + Project 1)

I would like when I building MainProject, automaticaly build Project 1 (with property)

In Main project
task build(dependsOn: ':Project1:compileJava')  
{
...
}

Can you help me please?

best regards
Loïc