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

Android sourceSets task does not show output in Gradle 6.8+ #16186

Closed
3flex opened this issue Feb 17, 2021 · 3 comments
Closed

Android sourceSets task does not show output in Gradle 6.8+ #16186

3flex opened this issue Feb 17, 2021 · 3 comments

Comments

@3flex
Copy link
Contributor

3flex commented Feb 17, 2021

Expected Behavior

I can run the Android Gradle task sourceSets on an Android module and see output.

Current Behavior

No output is shown from the task.

Context

The task works in Gradle 6.7.1 but not Gradle 6.8 or higher (and I've just checked a very recent 7.0 nightly as well). I suspect the cause is 4dac91a since SourceSetsTask extends AbstractReportTask which had its @TaskAction removed by that commit.

I originally raised this issue against Android's issue tracker but was told to raise against the Gradle project instead.

Steps to Reproduce

Open any Android project and run the sourceSets task in an Android module with Gradle 6.7.1 (works, prints output as expected) then switch to Gradle 6.8 and try again (does not show output).

Your Environment

Gradle 6.8.2, AGP 4.1.2 on Windows

@3flex 3flex changed the title Android sourceSets does not show output in Gradle 6.8+ Android sourceSets task does not show output in Gradle 6.8+ Feb 17, 2021
@ljacomet
Copy link
Member

@bamboo Could you check this? I reproduced it.

@ljacomet
Copy link
Member

ljacomet commented Apr 1, 2021

This will be fixed in Gradle 7.0 and most likely backported to Gradle > 6.8.3
Follow #16621 for this.

@bamboo
Copy link
Member

bamboo commented Apr 5, 2021

Thanks for the follow up, @ljacomet!

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

No branches or pull requests

6 participants