gradle-release icon indicating copy to clipboard operation
gradle-release copied to clipboard

Does not support excluding dependent tasks after Gradle 6.7.1

Open nigelsim opened this issue 3 years ago • 3 comments

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 avatar Apr 28 '22 11:04 nigelsim

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.

nigelsim avatar May 11 '22 04:05 nigelsim

@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.

apoguy avatar Aug 22 '22 13:08 apoguy

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")
    }

icyerasor avatar Feb 27 '23 18:02 icyerasor