I want to gather several sub-projects in a single GitHub repo for the convenience of the users. But I wonder if it's actually possible to have folders in a single repo each of which is covered by a different license (all of them are BSD-license variants, with small differences), or do I need to split the project into multiple repos?
Can a single GitHub repository include source code released under multiple licenses?
licensing;github
If a licence file exists, it's rather natural to assume it applies to the folder (and its subfolders), so you can have a licence in each subproject folder and all is well.Other than that, you could have the license in each file and thus even change between licences on a per-file basis.Beyond that, I would point out that you could also have a repo for each project and then just add them as submodules to the convenience project (personally I find that more convenient, because I also have the possibility to clone just the part that interests me).Lastly, if this is about convenience, then don't overdo it. Especially try to avoid variants. When I see a project, where I see clearly this part is GPL, that part is MIT, then that's acceptable. But if I have to deal with a jungle of licences and custom variants of them, I'll probably just go look some place else or just write the part I need myself. Programmers love to reinvent the wheel. Don't give them excuses to do that ;)