The Bv Formalism For Homotopy Lie Algebras