However: from my understanding the users are free to publish the source code and any NDA that would prevent this is not compatible with GPL. Probably not an issue with the military but may still affect the businesses that write the code.
Also you can not mix propriety code that you don't own with GPL which is also a showstopper in many cases.
> from my understanding the users are free to publish the source code
Yes that's correct. Which makes GPL viral, but not MPLv2. My point was that while I understand how GPL may be too much for companies, I don't think MPLv2 would be.
I have been in big companies that were fine with using (properly) LGPL and MPLv2, by the way.
> Also you can not mix propriety code that you don't own with GPL which is also a showstopper in many cases.
I am not sure I understand that. You can mix proprietary code with GPL, the licence has nothing against that. What you cannot do, though, is distribute proprietary code you don't own and don't have a right to distribute. But that's independent from GPL.