Skip to content

How to depend on 'detektMain' task? #3428

Answered by chao2zhang
Den-Rimus asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you for raising the question: The discussion of android gradle tasks can also be seen in #3122 and #3240.

I have prototype #3334 to register android source set the same way as we register JVM source set, and does not use afterEvaluate block to enforce ordering of the execution in gradle.
This prototype caused us to rethink gradle tasks #3364.

Feel free to use the method in #3334 if this is an urgent task for you and I am available on #kotlinlang slack. The prototype in #3334 is based on the custom solution I built at my company to register Android tasks correctly.

We are probably going to evaluate different options in the next release after 1.16, and I would like to wait for AGP 4.2…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by schalkms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants