Ground states of a class of gradient systems of Choquard type with general nonlinearity. (December 2021)