This library now works with gradle and will soon be available on the central maven repository. For the moment its on jCenter at Bintray. Just add the following repository to your root build.gradle:
allprojects {
repositories {
jcenter()
maven { url “https://jcenter.bintray.com” }
}
}
Then in your app build.gradle:
dependencies {
// other repos …
compile ‘ch.halcyon:squareprogressbar:1.6.0’
}