There is no solenoid on the front valve cover for the J30A4 or A5 engines to leak oil onto the alternator with. BUT, if the front valve cover is leaking oil at the front passenger side corner, it would cause the same issue.
Battery light on while the car is running means alternator current / voltage regulator issue, or alternator pulley is seized and alternator stator isn't really turning.
The problem is with where you bought the alternator from. If it's from your local not-in-the-zone autozone or O-O-O-Oreiley then that's the issue. I suggest you buy a used OEM alternator from LKQ online.