I would like to add some of my node_modules inside the build/resources/main/static directory of my Spring Boot project.
Can I do this through Gradle v2 by adding some task in my gradle.build file?
I'm trying this (which is actually for Gradle v3) but it's not copying anything so far.
task copyTask(type: Copy) {
from 'node_modules'
into 'build/resources/main/static'
}
So adding:
task copyTask(type: Copy) {
from 'node_modules/.'
into 'build/resources/main/static'
}
in my gradle.build and running gradle copyTask build worked fine.
Thanks JB Nizet!