我有一个依赖项,其JAR包含以下文件:
~ git:master ❯❯❯ jar tf `find ~/.gradle/caches -name "myorg-*.jar"`
thrift-include-dir/
thrift-include-dir/shared/
thrift-include-dir/shared/types/
thrift-include-dir/shared/types/criteria.thrift
thrift-include-dir/shared/types/stagefetchtype.thrift
我希望在某个任务(generateThriftSources)运行时这些文件出现在目录中,因为我需要能够在父项目中执行此操作:
include "shared/types/stagefetchtype.thrift"
我可以将目录从类路径复制到特定的构建目录子文件夹,例如build/thrift-include-dir
吗?