Can't reorder AspectJ task in Gradle

I’m using Gradle 4.5.1, gradle-aspectj 2.0 plugin and some others. The problem is that aspectj’s task compileAspect is being executed before compileJava. Seems like I’ve found a problem here. So I’ve tried to reorder the tasks execution in the following way:


I’ve also tried almost the same replacing project.tasks[taskName] with taskName. However, after reorderig compileAspect task is being ignored (completely, not skipped). What’s more: although compileJava seems to be executed it doesn’t produce any classes in the build/classes directory.

I am new to Gradle so maybe I’m doing a mistake somewhere in the reordering? Please, see the Github repository as an example producing the issue.

Thank you very much for any help!