Based on other answers here I am using this Gradle build to create a fat/uber/shaded Jar with my command line tool and a number of JDBC drivers: