See here for an example which creates a new jar by removing some classes and depends on the “tweaked” jar