-
Notifications
You must be signed in to change notification settings - Fork 42
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
Micronaut SQL JPA requires Micronaut Data Model dependency #1157
Micronaut SQL JPA requires Micronaut Data Model dependency #1157
Comments
@dstepanov do you know what could be going on? |
In some circumstances, automatic dependencies can get in the way. This should be rare but there was no built-in mechanism to ignore such dependencies. It is now possible to list these using the `micronaut` extension, for example: ``` micronaut { ignoredAutomaticDependencies.add("io.micronaut.data:micronaut-data-processor") } ``` The responsibility of adding these is then shifted to the user. Fixes micronaut-projects/micronaut-sql#1157
In some circumstances, automatic dependencies can get in the way. This should be rare but there was no built-in mechanism to ignore such dependencies. It is now possible to list these using the `micronaut` extension, for example: ``` micronaut { ignoredAutomaticDependencies.add("io.micronaut.data:micronaut-data-processor") } ``` The responsibility of adding these is then shifted to the user. Fixes micronaut-projects/micronaut-sql#1157
Don't know how and when this started to happen, but for some reason generated introspection classes for
and introspection is used when building session factory so that is when exception is thrown. Feels like |
When did it appear? I think we always remapped to our annotations. This might be improved by not generating the enum reference but a simple string. |
I didn't realize first that data-processor is added as dependency through gradle (and in maven it's not added) so that is doing mapping and adding dependencies for data-model in the generated introspections. Tried this in 3.x and gives the same error, so not sure what and when changed that we now need to add data-model explicitly. |
I expected the following dependencies to be enough:
but without:
implementation("io.micronaut.data:micronaut-data-model")
We don't mention in the docs micronaut-data-model is necessary.
Without it, I get:
This is the domain of the sample app:
Steps to reproduce:
clone https://github.com/grails-core-issues-forks/micronaut-sql-1157
The text was updated successfully, but these errors were encountered: