Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?
share|improve this question
up vote 7 down vote accepted

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 :).

share|improve this answer
Chosen this answer because it was more accurate. Thanks! – 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."

share|improve this answer
Thanks, but I prefer the answer above :) – UberLambda Mar 12 '13 at 19:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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