I want to share plugin on github, do I have to add any license file? which one?

Discourse is distributed using the GPL v2 or later license (although I wish they would change to GPL 3 for better license compatibility).

This means you are restricted to licenses compatible with GPL v2:

  • GPL v2
  • LGPL v2
  • MIT
  • revised BSD (3 or 2 clause)
  • zlib
  • MPL v2
  • ISC

If Discourse used GPLv3 there would be more compatible licenses like Apache-2.

Discourse itself does depend packages licensed with Apache-2. So if they want to be really compliant they should switch to GPL v3 or later.

3 Likes