This is done with version 2.6 and Java 7.
Running a simple copy task where the source folder has symlinks will resolve them in the target folder.
So in the example below, all the symlinks created by the npm install in the staging folder will be files in the “lookat” folder.
I have seen discussions from 2013 about handling this, but definite resolution found. Maybe I could use the eachFile method?
BTW, this need is actually related to the nebula ospackage plugin, but my guess is that it’s behaviour is tied to gradle core behaviour, and if I can get a copy to work, then I’ll know how to handle this plugin.
installNpm {
dependsOn stageFiles
installDir stagingFolder
}
task (‘myTest’, type: Copy) {
dependsOn installNpm
from stagingFolder
into “$buildDir/lookat”
}