# Getting GradlePluginsRuntimeException

**URL:** <https://discuss.gradle.org/t/getting-gradlepluginsruntimeexception/32563>\
**Category:** Buildship\
**Created:** [July 26, 2019, 12:03pm UTC](https://discuss.gradle.org/t/getting-gradlepluginsruntimeexception/32563 "2019-07-26T12:03:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vai007](https://avatars.discourse-cdn.com/v4/letter/v/59ef9b/32.png) [@vai007](https://discuss.gradle.org/u/vai007)\
**Post date:** [July 26, 2019, 12:03pm UTC](https://discuss.gradle.org/t/getting-gradlepluginsruntimeexception/32563/1 "2019-07-26T12:03:44Z")

</div>

Hi,  
I’m getting following exception while creating a custom project.  
org.eclipse.buildship.core.internal.GradlePluginsRuntimeException: Can’t read root project location for project located at  
I created this file org.eclipse.buildship.core.prefs in the .settings folder of my project programmatically when pressing finish button in the new project creation wizard. I added these entries in this file  
connection.project.dir=\n  
eclipse.preferences.version=1  
programatically. The file is successfully created with the above entries in the project but still I get the same exception  
org.eclipse.buildship.core.internal.GradlePluginsRuntimeException: Can’t read root project location for project located at  
in the console after creating my custom project. How to fix this exception?

---

<div class="post-metadata">

**Author:** ![donat](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/donat/32/7798_2.png) [@donat](https://discuss.gradle.org/u/donat)\
**Post date:** [July 29, 2019, 9:42am UTC](https://discuss.gradle.org/t/getting-gradlepluginsruntimeexception/32563/2 "2019-07-29T09:42:39Z")

</div>

I’m just guessing but I assume you want to implement a custom plugin that creates a Buildship project.

You don’t need to interact with the preferences directly, there’s a public API you can use to import and synchronize projects. Look at the `org.eclipse.buildship.GradleWorkspace` as an entry point. You can generate a custom project structure and then import it with the mentioned API.

Nonetheless, `connection.project.dir` should always point to the root project location. For the root project, the value should be an empty string.
