Custom jar in gradle

You may put the jars into the libs directory in the root of the project and specify a relative path to it in the build.grade:

repositories {
    //...
    flatDir {
        dirs 'libs'
    }
}

Your second question is answered in this topic.