title: Migrate frontend-maven-plugin from maven to gradle
body: <p>I have a <code>com.github.eirslett:frontend-maven-plugin</code> in my <code>maven</code> project.</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;
      &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;0.0.27&lt;/version&gt;
  
      &lt;executions&gt;
  
          &lt;execution&gt;
              &lt;id&gt;install node and npm&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;install-node-and-npm&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-resources&lt;/phase&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;npm install&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;npm&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-resources&lt;/phase&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;install&lt;/arguments&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
  
          &lt;execution&gt;
              &lt;id&gt;bower install&lt;/id&gt;
              &lt;goals&gt;
                  &lt;goal&gt;bower&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;phase&gt;generate-resources&lt;/phase&gt;
  
              &lt;configuration&gt;
                  &lt;arguments&gt;install&lt;/arguments&gt;
                  &lt;workingDirectory&gt;${basedir}/src/main/webapp&lt;/workingDirectory&gt;
              &lt;/configuration&gt;
          &lt;/execution&gt;
  
      &lt;/executions&gt;
  
      &lt;configuration&gt;
          &lt;nodeVersion&gt;v4.2.4&lt;/nodeVersion&gt;
          &lt;npmVersion&gt;2.7.1&lt;/npmVersion&gt;
          &lt;nodeDownloadRoot&gt;https://nodejs.org/dist/&lt;/nodeDownloadRoot&gt;
          &lt;npmDownloadRoot&gt;https://registry.npmjs.org/npm/-/&lt;/npmDownloadRoot&gt;
          &lt;workingDirectory&gt;${basedir}/src/main/webapp&lt;/workingDirectory&gt;
  
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>Now I need to migrate it into <code>gradle</code> but I can't find examples how to do it. Grade migration tool translates only dependencies but not plugins. Is there some examples, how can I use <code>frontend-maven-plugin</code> in <code>gradle</code>?</p>