# Jar priority

**URL:** <https://discuss.gradle.org/t/jar-priority/4202>\
**Category:** Old Forum Archive\
**Created:** [December 15, 2014, 9:16am UTC](https://discuss.gradle.org/t/jar-priority/4202 "2014-12-15T09:16:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro\_Martelluc](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alessandro\_Martelluc](https://discuss.gradle.org/u/Alessandro_Martelluc)\
**Post date:** [December 15, 2014, 9:16am UTC](https://discuss.gradle.org/t/jar-priority/4202/1 "2014-12-15T09:16:00Z")

</div>

Hello,

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?

Thanks

---

<div class="post-metadata">

**Author:** ![cmcginty](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/cmcginty/32/2209_2.png) [@cmcginty](https://discuss.gradle.org/u/cmcginty)\
**Post date:** [December 16, 2014, 9:49am UTC](https://discuss.gradle.org/t/jar-priority/4202/2 "2014-12-16T09:49:00Z")

</div>

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.
