Under the terms of the agreement, CoolBrands will stop manufacturing ice cream carrying the Weight Watchers name on May 1 and Wells Dairy Inc. will become the exclusive maker of the products, the companies said.

Last year, CoolBrands sued Weight Watchers for $360 million in response to a lawsuit filed by Weight Watchers over alleged violation of a license pact if it continued to sell products...