Example: After much trial and error I discovered that I needed to configure my Exec tasks AFTER configuration, but BEFORE the actual Exec task by using doFirst. If I set things up during configuration, my plugin’s variables would be evaluated during configuration, before they were set in the actual build.gradle file. But, the configuration had to be set with doFirst or else Exec would try exec without a command.
Example: In contrast, it seems that Tar tasks MUST be setup during the configuration stage or else Tar doesn’t think it contains anything and won’t create the archive.
Do we just need to know this stuff? I wasn’t able to find information about this in the documentation.