In my view it depends who you are. If you are 40 years old and want to sell homebrew to college kids, that is kinda seedy and the cops won't be impressed if they catch you. Especially if someone gets hurt while boozed on your booze, that is just a really bad situation to get involved with.
But if you are one of the kids, an enterprising 18 year old, selling beer is probably on par with selling weed or any of the other illegal activities that happen and if you are prepared to take the risks...
IANAL, but I think either way you should be safe to play the ingredients card. You can "share" a batch of beer with someone where they pay for ingredients/consumables, you brew it and provide the equipment, and you both share the result (in whatever proportion is deemed fair). If you can involve them in the brewing process in some token way then you can say you brewed it together and I think you would have a plausible defence.