Coca-Cola Bottling Co. of Northern New England says it will cease manufacturing operations at its factory in Needham by the end of the year, resulting in 146 layoffs.

The New Hampshire-based company plans to use the space, on B Street near Needham Crossing, as a warehouse, said Nick Martin, a spokesman for Coca-Cola of Northern New England.

The facility will serve as a permanent home for distribution and maintenance for vending machines and other sales equipment, operations that currently are based out of a leased property in Waltham. Martin said the company is working with the employee union to move interested workers to other facilities in the region.