You made the same mistake in the createDistro. When you use the << you are reducing the task to the doLast only and that runs in EXECUTION phase. That means your Zip task has not been configured with the from part. So again the correct definitions should be: