Use an alternate launcher, like MultiMC, and if you're not using the online features anyway, you can just "Launch in Offline Mode", which will just be unable to authenticate with legitimate servers.

You'd still need to log in to update the game (I think), but for your purposes it'd probably work pretty well.