Lock java cookbook major version