I believe '07-'18 (JK, not JL) will all fit, though the way the Freedom Panels on some model years attach to the header vary. There were also minor changes in the rear window size over the JK production run.
2016 JKU Sahara in Tank ---> now 2016 JKUHR in Granite Crystal
Location: No Longer in SFL (and no longer have a TJ)
07 - 10. Maybe 11 but I'm not 100%. 12 and up and you'll have to move the hinges on your windshield frame. When I sold my hard top, guys with the newer JKs came to try it and the hinges never lined up.
I just picked up a used hard top and had the same question. The link below was very informational and really helped me. I ended up with a 2012 hard top for my 2015 Rubicon and it fits great, no issues. Hope it helps.