Native builds that depend on a custom Exec task

You need generatedBy: See Gradle dependencies between normal tasks and native generated tasks.