fixed the build so only one jar is generated in the end