jmix icon indicating copy to clipboard operation
jmix copied to clipboard

Custom Converter not found through transitive add-on dependency

Open mariodavid opened this issue 4 years ago • 1 comments

When creating a custom converter in an addon and have a hierarchy like this:

  1. add-on 1 (with custom converter)
  2. add-on 2 (uses add-on 1; uses custom converter)
  3. 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

mariodavid avatar Feb 04 '22 12:02 mariodavid

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

glebfox avatar Jun 06 '24 13:06 glebfox