Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 21418

ProjectBuilder and Project#afterEvaluate hooks

$
0
0

Yes, you can just call project.evalute(). If you are writing your tests in type-checked manner don’t forget to cast to ProjectInternal. As mentioned, it’s a bit nasty, but realistically, the use of afterEvaluate { } is ubiquitous and unavoidable in many cases so at least using evaluate() you can test that code w/o resorting to an integration test.


Viewing all articles
Browse latest Browse all 21418

Trending Articles