title: Making module run an action on another module before compiling in Gradle
body: <p>I have a project structure that looks like this:</p>
  
  <pre><code>root
    module A
      build.gradle
    module B
      build.gradle
    build.gradle
    settings.gradle
  </code></pre>
  
  <p>I need to run a task from <code>module B</code> before compiling <code>module A</code></p>
  
  <p>I need to run the task "run" from module B before building module A</p>
  
  <p>How would I do this?</p>