title: How to add GitHub Package Registry package as a Gradle dependency
body: <p>So, I have a <a href="https://github.com/madhead/so57323260" rel="noreferrer">GitHub project</a> with a Package Registry configured. It has two packages:</p>
  
  <p><a href="https://i.stack.imgur.com/gtQVL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gtQVL.png" alt="Two packages published in Github Package Registry"></a></p>
  
  <p>Package pages have instructions only for Maven, besides that, the instructions are broken (<code>maven install so57323260</code> is not a valid way to add a dependency in Maven):</p>
  
  <p><a href="https://i.stack.imgur.com/haLkV.png" rel="noreferrer"><img src="https://i.stack.imgur.com/haLkV.png" alt="Package page with broken Maven instructions"></a></p>
  
  <p>Question is: how do I add <a href="https://github.com/madhead/so57323260/packages/14541" rel="noreferrer">that package</a> in a Gradle build?</p>