Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert order into executable jar is not deterministic, causes classloading differences #72

Closed
plaird opened this issue Dec 17, 2020 · 1 comment
Assignees
Labels

Comments

@plaird
Copy link
Contributor

plaird commented Dec 17, 2020

We had some issues with classes being classloaded in a different order, depending on the platform that built the Spring Boot jar. We believe this is caused by the springboot rule packaging step not specifying the insert order into the spring boot jar between:

  • spring boot loader
  • BOOT-INF/classes
  • BOOT-INF/lib

We want the order to be as depicted above.

@plaird
Copy link
Contributor Author

plaird commented Jan 5, 2021

PR #75 improved this feature such that the insert order of dependencies into the Spring Boot jar follows the BUILD file order. The documentation has the details:
https://github.com/salesforce/bazel-springboot-rule/blob/master/tools/springboot/unwanted_classes.md#classpath-ordering-using-the-build-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants