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

  • Kotlin
test.systemProperty('some.prop', 'value')
  • Groovy
test.systemProperty 'some.prop', 'value'

Documentation / Reference


Powered by ComboStrap