You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ Is your feature request related to a problem? Please describe
Writing rules files is a little annoying. If you make a mistake, the carets get misaligned and you can't search for the name you've given your dependency set, because it may not exist as a string in the file. Plus you have to switch back and forth between versions.properties and version-rules.txt.
💡 Describe the solution you'd like
What if the properties in versions.properties could be of two forms. As now,
plugin.foo=x.x.x
version.otherFoo=y.y.y
but could also be a list of globs/artifacts with a name, like:
Each "bare" assignment key (i.e., without plugin. or version.) would be expected to appear after plugin. or version. to specify the version of the artifacts it matches. So you'd end up with something like (I know JUnit5 has a better way):
On the other hand, looking at this, maybe a regex would be better, so you could do org.junit.jupiter:junit-jupiter-(engine|params|api). Whatever. The point is name on the left, list on the right, both things in the same file.
One cool thing that migrate could do is look for common versions and group them together. It might be too eager, but users could easily separate out things that got combined coincidentally.
Thoughts?
🤚 Do you want to develop this feature yourself?
Yes
No
Happy to give it a try. It shouldn't be too bad, I don't think. It would just involve processing the properties file in such a way that you get the same data you would have gotten from the versions.properties and any rules files separately.
The text was updated successfully, but these errors were encountered:
The things with rules is some of them do complex things but most of the time they are just a prefix and an implicit name of the version. So the simple version for simple things would be:
Writing rules files is a little annoying. If you make a mistake, the carets get misaligned and you can't search for the name you've given your dependency set, because it may not exist as a string in the file. Plus you have to switch back and forth between
versions.properties
andversion-rules.txt
.💡 Describe the solution you'd like
What if the properties in
versions.properties
could be of two forms. As now,but could also be a list of globs/artifacts with a name, like:
Each "bare" assignment key (i.e., without
plugin.
orversion.
) would be expected to appear afterplugin.
orversion.
to specify the version of the artifacts it matches. So you'd end up with something like (I know JUnit5 has a better way):On the other hand, looking at this, maybe a regex would be better, so you could do
org.junit.jupiter:junit-jupiter-(engine|params|api)
. Whatever. The point is name on the left, list on the right, both things in the same file.One cool thing that
migrate
could do is look for common versions and group them together. It might be too eager, but users could easily separate out things that got combined coincidentally.Thoughts?
🤚 Do you want to develop this feature yourself?
Happy to give it a try. It shouldn't be too bad, I don't think. It would just involve processing the properties file in such a way that you get the same data you would have gotten from the
versions.properties
and any rules files separately.The text was updated successfully, but these errors were encountered: