I\'m new to groovy and gradle and was wondering whether someone knew why my scriplet wasn\'t working (edit actually it does work but the warning still appears). This section is
If you are willing to disable the Groovy > Assignment Issues > Incompatible type assignments inspection, the warning goes away.