Table of Contents

Gradle - System Property

Management

Get

System.properties['system']

Set

gradle.properties

Gradle - gradle.properties

systemProp.gradle.wrapperUser=myuser
systemProp.gradle.wrapperPassword=mypassword

Command line

Using the -D command-line option

gradle -q -Dkey=value

Build script

test.systemProperty('some.prop', 'value')
test.systemProperty 'some.prop', 'value'

Documentation / Reference