The chemical reactions and pathways resulting in the formation of poly-gamma-glutamate, a polymer of D- and/or L-glutamic acid residues linked by gamma-peptidyl bonds, that forms all or part of a bacterial capsule.