INRIA / spoon

Spoon is a metaprogramming library to analyze and transform Java source code. :spoon: is made with :heart:, :beers: and :sparkles:. It parses source files to build a well-designed AST with powerful analysis and transformation API.
http://spoon.gforge.inria.fr/
Other
1.75k stars 350 forks source link

Is Spoon's license compatible with MIT #2713

Closed msteinbeck closed 6 years ago

msteinbeck commented 6 years ago

May I publish a Java library under MIT license if it is using Spoon? I tried to figure out whether the CeCILL license is compatible with MIT, but had no luck so far.

surli commented 6 years ago

Spoon is not compatible with MIT. The CeCILL license it used is basically a LGPL.

msteinbeck commented 6 years ago

So may I license my library under the terms of the LGPL or do I have to go with the CeCILL license?

surli commented 6 years ago

Actually, if your library is only using Spoon as an external library (i.e. you make a reference of Spoon, but you're not changing anything inside Spoon) I think you can put whatever license you want on your own code. See: https://softwareengineering.stackexchange.com/questions/141847/how-does-using-a-lgpl-gem-affect-my-mit-licensed-application

surli commented 6 years ago

If on the contrary you're changing/modifying a part of Spoon, then you have to use the same license.

msteinbeck commented 6 years ago

That sounds great. We use Spoon from Maven Central, so licensing shouldn't be a problem. Thank you for this link.

monperrus commented 5 years ago

FYI Spoon is now dual-licensed MIT & Cecill-C, see #2950