Remove most of the dependencies (leave only java-runtime).