title: How can I apply Gradle plugin from directly GitHub repo
body: <p>I tried to apply <code>plugin</code> directly from <code>GitHub</code> repo e.g. as given below</p>
  <p><code> apply from 'https://github.com/gradle/gradle-hello-world-plugin'</code> but on running</p>
  <p><code>./gradlew codeLines </code></p>
  <p>It gives me error as</p>
  <pre><code>* Where:
  Script 'https://github.com/SurpSG/code-lines-counter-gradle-plugin' line: 7
  
  * What went wrong:
  Could not compile script 'https://github.com/SurpSG/code-lines-counter-gradle-plugin'.
  &gt; startup failed:
    script 'https://github.com/SurpSG/code-lines-counter-gradle-plugin': 7: unexpected token: &lt; @ line 7, column 1.
       &lt;!DOCTYPE html&gt;
       ^
  
  </code></pre>
  <p>How can I directly <code>apply plugin</code> from remote git repo?</p>