I want to exclude a certain groovy script file from being compiled in the following example, how would I do that? Also I still want to package the file in the fatJar though
task fatJar(type: Jar) {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
If you put the file in
src/main/resources
It won't be compiled, but it should still be part of any jar task
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.