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
Hey, one of my little complaints and something that I think makes it a little bit more difficult for new learners is it needing to use the -Prelease=incrementMajor etc...
It doesn't help because gradle does not auto complete those, I looked around to see if that's possible but maybe it's just the way gradle is designed, that it cannot grab those info's for the IDE to auto complete on...
Did anyone else run into this concern and how could it be alleviated?
I was thinking it would just be easier for me to have a markNextReleaseMajor, markNextReleaseMinor and then it's just a simple easily discoverable gradle task. Gradle (kts ) doesn't seem to like tasks calling other tasks and passing command args, even though in this case it isn't a part of the execution, its intention is just a shortcut to a task we would normally run
Asking newcomers to simply run and remember these 2 tasks would be so much better than copying and pasting command line args and remembering those each time
Thoughts?
The text was updated successfully, but these errors were encountered:
Hi, I've implemented this using task rules, however there is currently somewhat of a drawback:
it will not show the task in the ide.
with task rules, it allows you to specify the next marked version by doing
gradle run markNextVersion[Patch/Minor/Major/MinorIfNotRelease/Prerelease/Branch]
and then it will use the appropriate version incrementer. however, since these tasks technically don't actually exist until right before they're invoked, the ide has absolutely no knowledge of them. (basically you can tell gradle "if a task matches this pattern, then run this code right before attempting to execute the task", and the code that it runs creates the task with name of the task its about to run)
I'm debating whether or not I might just want to create a couple of dedicated tasks called
markNextVersionPatch
markNextVersionMinor
markNextVersionMajor
etc.
that way, they'd actually show up inside of the gradle sidebar in intellij, for greater discoverability.
Hey, one of my little complaints and something that I think makes it a little bit more difficult for new learners is it needing to use the -Prelease=incrementMajor etc...
It doesn't help because gradle does not auto complete those, I looked around to see if that's possible but maybe it's just the way gradle is designed, that it cannot grab those info's for the IDE to auto complete on...
Did anyone else run into this concern and how could it be alleviated?
I was thinking it would just be easier for me to have a markNextReleaseMajor, markNextReleaseMinor and then it's just a simple easily discoverable gradle task. Gradle (kts ) doesn't seem to like tasks calling other tasks and passing command args, even though in this case it isn't a part of the execution, its intention is just a shortcut to a task we would normally run
Asking newcomers to simply run and remember these 2 tasks would be so much better than copying and pasting command line args and remembering those each time
Thoughts?
The text was updated successfully, but these errors were encountered: