Update spring dependencies in optional mode