I'm using LibGDX and deploying a runnable jar file, using the Eclipse feature, with libraries extracted into it. There are also .so files and .dlls inside.

  1. Is it legal to do so? I didn't find anything about deploying to a single jar file.
  2. If 1 is legal, if I obfuscate the jar file, maybe with ProGuard, will it be still legal?

Obviously not a lawyer, so this isn't legal advice, but my personal interpretation is:

The code is licensed under Apache License, Version 2.0. If you read the Redistribution section:

You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form...

So, yes, you can package it with your jar file. And I would argue that obfuscating the code is modifying it. However, one of the conditions of redistribution is:

If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file...

You need to keep all the notices intact. So don't obfuscate those away :).

  • \$\begingroup\$ Chosen this answer because it was more accurate. Thanks! \$\endgroup\$ – UberLambda Mar 12 '13 at 19:00

According to the Google Code page, the license is attribution + share-alike. I quote (emphasis mine):

Share Alike — If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

That means "yes."

  • \$\begingroup\$ Thanks, but I prefer the answer above :) \$\endgroup\$ – UberLambda Mar 12 '13 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.