This does some small cleanup by avoiding the eager realization and creation of tasks (such as through TaskProvider#get), preferring to use lazy alternatives to configuring or passing around these tasks. This is done both in the FG codebase and in the buildscript.
Additionally, the manual (eager) definition of the sources jar task is replaced with the automatic (lazy) definition done using JavaPluginExtension#withSourcesJar(), with the sources jar being (lazily) configured to include the four source sets of FG.
This does some small cleanup by avoiding the eager realization and creation of tasks (such as through
TaskProvider#get
), preferring to use lazy alternatives to configuring or passing around these tasks. This is done both in the FG codebase and in the buildscript.Additionally, the manual (eager) definition of the sources jar task is replaced with the automatic (lazy) definition done using
JavaPluginExtension#withSourcesJar()
, with the sources jar being (lazily) configured to include the four source sets of FG.