How can I sort source files in task?
I have combineJs task from gradle-js-plugin:
def jsFiles = fileTree(dir: “/lib/”, include: “jquery.js”)
jsFiles += fileTree(dir: “/lib/plugins”, include: “*.js”) //.sort()
jsFiles += fileTree(dir: “/lib/”, include: “underscore.js”)
source = jsFiles
dest = file("/js/all.js") }
I want to sort plugins in natural order, because when it combines on unix it is in different order than on windows.
Is it possible, have tried many different ways.