-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Unnecessary imports added in 7.9.4 #25739
Comments
I'll update this issue after upgrading to 8.2.1 or close it if it's no longer valid. |
This is a jhipster-migrate issue. |
I finished a first pass at upgrading to JHipster 8.2.1 today. First, I upgraded to 7.9.4 and everything works. Then, I upgraded to 8.2.1. The v8 upgrade is still in progress. First, there's an error when running
Other issues:
|
I was able to fix the |
Closing this issue as it doesn't seem to be a problem with 8.2.1. I'll continue fixes in mraible/21-points#249. |
Overview of the issue
I upgraded my 21-Points Health application using
jhipster-migrate --verbose
and specifying 7.9.4 as the target version. However, this adds a bunch of unnecessary imports.In SearchRepositories:
In Resources:
In ResourceITs:
Motivation for or Use Case
Unused imports should not be added to classes.
Reproduce the error
Upgrade a 7.9.3 app to 7.9.4 and you'll see the errors.
Related issues
mraible/21-points#248
JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
git version 2.39.3 (Apple Git-146)
node: v16.20.2
npm: 8.19.4
Docker version 25.0.3, build 4debf41
Docker Compose version v2.24.6-desktop.1
The text was updated successfully, but these errors were encountered: