Boyfriend and friends don't like each other

My boyfriend and my friends do not get along very well together and it puts me in an awkward position. I like to go out to the bar with both but it just creates conflict. Of course I don't expect everyone to be friends but I feel like I'm being pulled in different directions. Anyone ever been in this situation? Any tips or suggestions?