Build jar file to dist directory.