title: Build Github Package as Maven using Jitpack
body: <p>can someone please guide me on how to build github projects using <a href="https://jitpack.io/">Jitpack</a>.</p>
  
  <p>I tried to follow this instruction and always got an error. I forked a project and added some changes on it so I need to get the current commit id as version.</p>
  
  <blockquote>
    <p>To get a GitHub project into your build:</p>
  
  <pre><code>Step 1. Add the JitPack maven repository to your build file
  
      url "https://jitpack.io"
  
  Step 2. Add the dependency in the form:
  
      Group: com.github.Username
      Artifact: Repository Name
      Version: Release tag or commit id
  
  That's it! The first time you request a project JitPack checks out the code, builds it and sends the Jar files back to you.
  </code></pre>
  </blockquote>
  
  <p>Here is my gradle file</p>
  
  <pre><code>buildscript {
      repositories {
          mavenCentral()
          maven { url 'http://download.crashlytics.com/maven' }
          maven { url "https://jitpack.io" }
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:1.0.0'
          classpath 'com.jakewharton.hugo:hugo-plugin:1.1.+'
          classpath 'com.stanfy.spoon:spoon-gradle-plugin:0.10.+'
          classpath 'com.crashlytics.tools.gradle:crashlytics-gradle:1.+'
      }
  }
  
  
  dependencies {
      compile 'com.android.support:appcompat-v7:22.0.0'
      compile 'com.android.support:recyclerview-v7:22.0.0'
  
      //THIS ONE SEEMS NOT TO WORK BASE ON THE INSTRUCTION
      compile ('com.github.username:repo:commitId')
  }
  </code></pre>
  
  <p><a href="https://github.com/mightymilk/material-dialogs">this is the project</a></p>