How do I create a hadoop jar that includes all dependencies in the lib folder using Gradle? Basically, similar to what fatjar does.
A:
Figured it out! Hadoop looks for libraries inside the "lib" folder of the final jar. So, add the following to the "jar" task.
jar { doFirst { into('lib') { from configurations.runtime } } }
hishboy
2010-10-12 16:56:36