I recently changed some settings in Gradle to speed up its process and one of them was changing this "org.gradle.configureondemand=true
" property in gradle.properties file.
I know you can guess a lot from the word "configuration on demand", but i wanna know the exact impact of this feature ? do i have to do sth to trigger configuration here after if I pass this argument true ?
can something go wrong in any situation if i pass it true ?
what is configuration phase exactly ?
This setting is relevant only for multiple modules projects. Basically, it tells Gradle to configure modules that only relevant to the requested tasks instead of configuring all of them, which is a default behaviour.
To answer more precisely to your questions:
In “configuration on demand” mode, projects are configured as follows:
projectA:projectB:someTaskcauses configuration of projectB.
Here is the full documentation.