I am new to gradle. When running the gradle build task in intelliJ, my task keep running infinitely and never completed. The task is written as follows:
task webjar(type: Jar) {
from(fileTree("build")) {
into "META-INF/resources"
}
}
jar.finalizedBy('webjar')
Can anybody help me in pointing out if I am doing anything wrong here?
update: When i am writing the task as follows it finishes successfully:
task webjar(type: Jar) {
destinationDir file("${projectDir}/build")
from(fileTree("build")) {
into "META-INF/resources"
}
}
Thanks,