Fix compilation (by using single version for depends) and generate sources and javadoc jars

If ranged versions are used for depends, there probably need to be upper bounds.