Publishing to the forge - license types

Hey guys,

I have a basic but maybe complicated question, there are a lot of forge components that are based on JS or JQuery libraries (example: CKEditor which has a GPL 2 license). There are also Github projects that can be worked on and imported to the forge (example: S22.Imap which has a MIT license).

I want to know, in terms of licenses, which licenses allow us to publish a forge component using those libraries? Because there are ton of different license types for free software and I think this information should be more easily available (since its confusing going through all the documentation of those license or having to contact the developer of those free pieces of software to ask if its alright to publish those to the forge). 

Best Regards,
Jose Torrao