LOS ANGELES (AP) -- Mel Gibson will pay $750,000 to his ex-girlfriend and continue to provide housing and financial support for their young daughter to resolve a bitter, long-running legal fight, a judge said Wednesday.

The settlement is intended to end the bickering and accusations that have permeated the case handled in mostly secret proceedings for more than a year, Superior Court Judge Peter Lichtman said.

Gibson's payments to Russian musician Oksana Grigorieva are dependent on a lasting truce.

As part of the agreement, their daughter will receive support equal to what the actor-director provides his other seven children. The former couple will split custody of the girl, who turns 2 in late October.

In addition, Gibson will keep paying for a multimillion-dollar house he purchased for Grigorieva and their daughter. The house will be sold when the girl turns 18 and she will receive the proceeds.

As a result of the settlement, Grigorieva cannot pursue a civil case against the Oscar winner, and both sides were ordered not to speak or write about their relationship.

Lichtman specifically said neither side could release any audio recordings, an apparent reference to a series of racist and sexist rants by Gibson that were leaked to the celebrity website RadarOnline.com.