Where did the phrase "old school" originate?

Pretty much what the thread title said. The oldest mention of the phrase I recall is its reference to “old school rap”. But did that usage cross over from somewhere else?

It goes back to at least the 1700’s in England. Courtesy of the OED.

Ah. So it’s an old school term.