Hello,
I just wanted to clarify whether it was a mistake or deliberate action. Aspose HTML starting with version 23.10 includes the whole bouncycastle dependency directly in the aspose-html-23.10.jar.
Obviously that creates a problem with any Java app that is already using bouncycastle because now there are classes with duplicate names but potentially different versions.
It only started to happen since 23.10 version as far as I can see. 23.8 didn’t have this issue. I wanted to update to 23.12 but now I have to stay on 23.8 because of that. Or I would need to manually repack the JAR to remove the duplicates.
It would be much better if you declared a proper dependency on bouncycastle instead of bundling it directly into the JAR.
Another option could be shadowing the bouncycastly package (e.g. com.aspose.bouncycastle.*) so it doesn’t conflict with the normal JAR.