# Using Artifactory to cache plugin?

**URL:** <https://discuss.gradle.org/t/using-artifactory-to-cache-plugin/18413>\
**Category:** Plugin Portal\
**Created:** [July 8, 2016, 4:00pm UTC](https://discuss.gradle.org/t/using-artifactory-to-cache-plugin/18413 "2016-07-08T16:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Predrag\_Knezevic](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/predrag_knezevic/32/217_2.png) [@Predrag\_Knezevic](https://discuss.gradle.org/u/Predrag_Knezevic)\
**Post date:** [July 8, 2016, 4:00pm UTC](https://discuss.gradle.org/t/using-artifactory-to-cache-plugin/18413/1 "2016-07-08T16:00:50Z")

</div>

Hi,

Is it possible to use Artifactory for caching the plugins coming from the portal, using the new `plugin {}` block syntax?

Thanks,

Predrag

---

<div class="post-metadata">

**Author:** ![mark\_vieira](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/mark_vieira/32/5396_2.png) [@mark\_vieira](https://discuss.gradle.org/u/mark_vieira)\
**Post date:** [July 8, 2016, 5:51pm UTC](https://discuss.gradle.org/t/using-artifactory-to-cache-plugin/18413/2 "2016-07-08T17:51:54Z")

</div>

Yes. You would instruct artifactory to proxy [https://plugins.gradle.org/m2/](https://plugins.gradle.org/m2/) and then configure your artifactory repo as a [custom plugin repository](https://docs.gradle.org/current/userguide/plugins.html#sec:custom_plugin_repositories).

---

<div class="post-metadata">

**Author:** ![gordontyler](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/gordontyler/32/4675_2.png) [@gordontyler](https://discuss.gradle.org/u/gordontyler)\
**Post date:** [July 18, 2016, 6:12pm UTC](https://discuss.gradle.org/t/using-artifactory-to-cache-plugin/18413/3 "2016-07-18T18:12:48Z")

</div>

What if my custom plugin repository requires authentication?
