Fixing build error to create jar