Baby will only sleep in swing

I need suggestions. My son is 8 weeks old and will only sleep in his swing. If I put him in the bassinet he fusses and cries until he vomits and won’t sleep. I’ve tried everything and I’m exhausted. I’m also pumping and bottle feeding. I don’t know how to get him to sleep in the bassinet and I know he isn’t supposed to sleep in the swing. He wakes every 2.5-3 hours in swing.