researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
859 stars 223 forks source link

Does not support excluding dependent tasks after Gradle 6.7.1 #355

Open nigelsim opened 2 years ago

nigelsim commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

@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 commented 1 year ago

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