I have implemented an algorithm and i want to contribute it to two opensource projects, say projectA and projectB. ProjectA uses apache2.0 license, projectB uses gpl license.

I want to license code under apache2.0 when contributing it to projectA and license code under gpl when contributing it to projectB. Can i do it? Thanks.

  • If you are the sole author you can do what you want. – planetmaker Feb 20 at 0:46