Skip to content
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

Does not support excluding dependent tasks after Gradle 6.7.1 #355

Open
nigelsim opened this issue Apr 28, 2022 · 3 comments
Open

Does not support excluding dependent tasks after Gradle 6.7.1 #355

nigelsim opened this issue Apr 28, 2022 · 3 comments

Comments

@nigelsim
Copy link

As also mentioned here and probably related to this if you are running Gradle up to 6.7.1 you can exclude tasks from the command line

./gradlew release -x test

However, after this release this stops working.

I realise there is limited maintenance happening on this project currently, but are there any pointers on how this might be solved?

@nigelsim
Copy link
Author

I think a workable workaround is to change the release.buildTasks to match what you want to do, but there will be a limit to what can be done here.

@apoguy
Copy link

apoguy commented Aug 22, 2022

@nigelsim did you find a workaround for this? I followed you replies in the linked issues in you first post but wasn't able to exclude tests.

@icyerasor
Copy link

Same problem here.
I can work around it by just defining to execute assemble instead of a build i think.

    release {
        buildTasks.add(":mySubmodule:assemble")
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants