London (CNN Business) A leading online grocer is getting into the vertical farming business.

Ocado, which sells groceries online and licenses its tech to supermarket chains , said Monday that it has invested £17 million ($21.5 million) in the nascent industry.

The UK company said it has formed a joint venture called Infinite Acres with vertical farming company 80 Acres Farms, and Priva Holdings, which sells industrial horticultural systems.

has also taken a majority stake in Jones Food Company, which it describes as the largest operating vertical farm in Europe.

While Ocado touted the sustainability of vertical farming, it also said that consumers would benefit from the "extreme density" of indoor farming, which allows food to be grown next to supermarkets and fulfillment centers.

Ocado is getting into the vertical farm business.

Just-in-time harvesting

Ocado OCDDY "We foresee a day where customers' vegetables are harvested hours before they are packed, meters from where they are shipped,"said in a statement.

Critics of vertical farming say the technique uses too much energy and is more expensive than traditional farming.

The move marks another push by Ocado into the food tech business. It's already well known for building warehouses where thousands of robots zoom around the premises to pack groceries

"The fusion of technology, sustainability and innovation is relatively new, but is a growing trend in the industry," said Mike Watkins, head of retailer and business insight at Nielsen UK.

Vertical farms can help reduce water use. But critics say they use too much energy.

Kroger KR Casino CGUSY The company is increasingly focused on licensing its robotic warehouse tech to other retailers, and already has deals within the United States andin France.

It is also developing a robot called "SecondHands" that can pick and package produce without damaging it.