Skip to content

[question] can I create a shortcut gradle task to bump major\minor without args? #602

@sreich

Description

@sreich

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions