# I am seeing a problem when using Gradle Wrapper / tooling API

**URL:** <https://discuss.gradle.org/t/i-am-seeing-a-problem-when-using-gradle-wrapper-tooling-api/1063>\
**Category:** Old Forum Archive\
**Created:** [April 11, 2013, 6:29am UTC](https://discuss.gradle.org/t/i-am-seeing-a-problem-when-using-gradle-wrapper-tooling-api/1063 "2013-04-11T06:29:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddimitrov](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/ddimitrov/32/141_2.png) [@ddimitrov](https://discuss.gradle.org/u/ddimitrov)\
**Post date:** [April 11, 2013, 6:29am UTC](https://discuss.gradle.org/t/i-am-seeing-a-problem-when-using-gradle-wrapper-tooling-api/1063/1 "2013-04-11T06:29:00Z")

</div>

I am seeing that GradleConnector is not respecting custom GRADLE\_USER\_HOME in IntelliJ IDEA. With the help of Denis Zhdanov I troubleshooted the problem and the bottom line is that there seem to be two issues:

1. The GradleConnector does not auto-detect the GRADLE\_USER\_HOME and we need to use the API set it explicitly 2. ConnectorServices.createConnector() always creates a DistributionFactory with the default user dir, and there is no API we can to override it

For more details see [http://youtrack.jetbrains.com/issue/IDEA-104963#comment=27-481208](http://youtrack.jetbrains.com/issue/IDEA-104963#comment=27-481208)

---

<div class="post-metadata">

**Author:** ![daz](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/daz/32/2475_2.png) [@daz](https://discuss.gradle.org/u/daz)\
**Post date:** [April 12, 2013, 3:06am UTC](https://discuss.gradle.org/t/i-am-seeing-a-problem-when-using-gradle-wrapper-tooling-api/1063/2 "2013-04-12T03:06:00Z")

</div>

Thanks for your feedback.

> 1. The GradleConnector does not auto-detect the GRADLEUSERHOME and we need to use the API set it explicitly

This is GRADLE-2405. Luckily, there’s a pretty easy workaround.

> 1. ConnectorServices.createConnector() always creates a DistributionFactory with the default user dir, and there is no API we can to override it

This is GRADLE-2414. Unfortunately, there’s no solid workaround for this, although I do admire your tenacity in trying to find one!

As often happens, other priorities have meant that we haven’t fixed this issue yet. If you’d be interested in working on a solution, we would really appreciate it. The best way to start would be to spark this discussion on the gradle dev mailing list ([dev@gradle.codehaus.org](mailto:dev@gradle.codehaus.org)).
