build.gradle 1.1 KB

12345678910111213
  1. // This build deserves an explanation. Nimbus-jose-jwt uses gson internally, which is unfriendly
  2. // to our usage of the security manager, to a degree that it makes the library extremely difficult
  3. // to work with safely. The purpose of this build is to create a version of nimbus-jose-jwt with
  4. // a couple classes replaced with wrappers which work with the security manager, the source files
  5. // in this directory.
  6. // Because we want to include the original class files so that we can reference them without
  7. // modification, there are a couple intermediate steps:
  8. // nimbus-jose-jwt-modified-part1: Create a version of the JAR in which the relevant class files are moved to a different package.
  9. // This is not immediately usable as this process rewrites the rest of the JAR to "correctly" reference the new classes. So, we need to...
  10. // nimbus-jose-jwt-modified-part2: Create a JAR from the result of part 1 which contains *only* the relevant class files by removing everything else.
  11. // nimbus-jose-jwt-modified: Use the result of part 2 here, combined with the original library, so that we can use our
  12. // replacement classes which wrap the original class files.