Improve Java templates and downgrade Leiningen