FIx up publisher lib and set a license id of unpublished in inventory tasks