Removing version number from Gradle dependencies #4485
-
Hi All, Does anyone know if there is an existing recipe that I can use to remove the version number from a grade dependency? We are moving to the spring dependency management plugin, so the versions will be centrally managed. I am aware that I can use find and replace but I would prefer to use a "gradle" recipe if one exists. Thanks in advance Simon |
Beta Was this translation helpful? Give feedback.
Answered by
Jenson3210
Sep 11, 2024
Replies: 1 comment 9 replies
-
I know @Jenson3210 has done some related work to standardize and clear out dependency versions. Perhaps he has some insights to share here? |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would recommend staying away from Find and replace for this one.
Problem is there are about 10+ ways in declaring dependencies/versions.
Are there any variables in the input?
Or is it only map and string notation with 'simple' strings?
In that case, I think that it would not be too hard.
I would go for a basic gradle recipe(RemoveVersionNotation), used in a spring recipe that migrates to dependency plugin(MigrateToDependencyPlugin)?