I don't have the full source code, but just looking at this makes me worry: Why `addScalaLib` for a `JAVA` project. Is this correct? If so, maybe use a better name than `addScalaLib`?