I have a gradle task where I create a sourceZip of my project and as a result a zip file Is created. I want that zip to be created in a specific folder source. In the task, I write it as
destinationDir = file('/source')
I cant use this directly in custom plugin as it gives error 'Gradle DSL method not found/; file()' Is there any way we can use this in custom plugin
Try writing destinationDir = file('source')