Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Gradle 创建一个包含 lib 文件夹中所有依赖项的 hadoop jar?基本上,类似于 fatjar 所做的。
弄清楚了!Hadoop 在最终 jar 的“lib”文件夹中查找库。因此,将以下内容添加到“jar”任务中。
jar { doFirst { into('lib') { from configurations.runtime } } }