jmix
jmix copied to clipboard
Custom Converter not found through transitive add-on dependency
When creating a custom converter in an addon and have a hierarchy like this:
- add-on 1 (with custom converter)
- add-on 2 (uses add-on 1; uses custom converter)
- app (uses add-on 2; uses custom converter implicitly through add-on 1, not explicitly!)
Doing a ./gradlew compileJava in the app results in:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> javassist.NotFoundException: de.diedavids.jmix.softreference.entity.SoftReferenceConverter
Adding an explicit dependency in the app to add-on 1 resolves the error.
This would mean that it would require every user e.g. of open-source add-ons to also add the transitive dependencies of the add-on.
see also: https://forum.jmix.io/t/custom-converter-not-found-through-transitive-add-on-dependency/1064
Reproducible on Jmix 2.2.3
Before project is started: Studio tries to remove attribute
At build time, an exception is thrown:
Execution failed for task ':compileJava'.
> javassist.NotFoundException: com.glebfox.locstr.datatype.LocalizedStringConverter