How to add different parameters, compiling a different war?

for example:

1.gradle assemble -p test 2.gradle assemble -p produce

I want to use a different configuration parameters in a test environment and formal environment, it may be a database, there may be a file upload path.

How can I do? (gradle assemble)

build.gradle: /demo-parent/build.gradle

My properties: /demo-parent/website/src/main/resources/