Added sources jar to artifact output and fixed removal of reference files from the build