Who invented civil disobedience?

Mohandas Karamchand Gandhi or Henry David Thoreau. Either of them is arguably the founder/inventor of civil disobedience.