Jar priority


I need to give a priority to the jar files contained in my projects. I need a specific file jar to get the highest priority against other jar and android.jar itself.

How can I do this with Gradle?


What task, compile? If you mean the classpath order then you might need to experiment with how Gradle converts dependency to the classpath. Also a lot of tasks give you direct access to modify the classpath.