@Findus23 opened this Issue on January 11th 2018 Member

While parsing the plugin API I just noticed that there is no consistent way for plugin authors to specify the license of their plugin:

BSD & GPL v3+
GPL 3.0 / fair use
GPL v3
GPL v3+
GPLv3 or later
InnoCraft EULA

It may be useful to require SPDX specifiers so it is consistent in the future:

@tsteur commented on January 11th 2018 Owner

This should be quite easy to do as there is a JSON schema that validates the plugin.json anyway. We basically only need a comma separated list more or less. The only annoying thing be that people might have problems to release a plugin update when they are not using one of those values yet but they would receive an email in this case.

Not sure which ones we would need to whitelist.

@Findus23 commented on January 11th 2018 Member

If there is already a validation I guess there are 2 solutions:

@tsteur commented on January 11th 2018 Owner

👍 awesome there is such a json file. The only challenge be to find out all GPL compatible licenses.
From https://developer.matomo.org/guides/distributing-your-plugin:

The license must be compatible with the GPLv3 or later (for free plugins)

@tsteur commented on January 11th 2018 Owner

We could also start with a small list based on what licenses are used now, then on request add more licenses (we can mention this in the email when validation fails)

@Findus23 commented on January 11th 2018 Member

I guess that's the simplest solution. The list above should contain all currently used licenses.

So this converts to

["GPL-3.0+","GPL-3.0", "BSD AND GPL-3.0+", "InnoCraft EULA", "GPL-2.0-only", "GPL-2.0+", "MIT"]

fair use isn't a license but we could add CC0-1.0 and/or WTFPL for people who consider the MIT license as to strict. (they are both GPL3 compatible according to https://www.gnu.org/licenses/license-list.de.html)

@tsteur commented on January 11th 2018 Owner

"BSD & GPL v3+","1"
"GPL 3.0","1"
"GPL 3.0 / fair use","1"
"GPL v3","7"
"GPL v3+","63"
"GPLv3 or later","1"
"InnoCraft EULA","17"

quickly extracted some stats. I'll allow GPL v3+ for now as well as Matomo uses it by default. Ideally we would change this in core to no longer use it as default.

@tsteur commented on January 11th 2018 Owner

FYI: Issued https://github.com/matomo-org/developer-documentation/pull/217/files

while "GPL v3+" is supported, I do not mention it there so ideally users directly use a different one.

@tsteur commented on January 12th 2018 Owner


This Issue was closed on January 12th 2018
Powered by GitHub Issue Mirror