What is the difference between using ext.varname and def varname . For instance. The following code seems to work the same:
task copyLicenses { def outDir = project.buildDir.absolutePath + '/reports/license/' doLast { copy { from 'licenses' into outDir include '*' }
seems to work just like
task copyLicenses { ext.outDir = project.buildDir.absolutePath + '/reports/license/' doLast { copy { from 'licenses' into outDir include '*' }
source share