The Lakers also dealt Maxwell Lewis and three second-round picks to Brooklyn.