Extract all files in the jars under lib/ into result.jar - Use something like one-jar to create a classloader that handles loading classes from inside jar-files inside a jar-file
Are you trying to combine all the jars in lib/ into a single Jar? If so you need to use a ZipTree task to expand all of the jars so it can pull them into your output jar.