I've owned 3 wranglers. Both my Tj and Yj had decent 2K-3k stereo systems installed.
Been rained on a handful of times. I mean soaked big time
NEVER EVER had a problem with water ruining anything.
I still have amps left over from my Tj, I haven't installed them in my Jk yet.