# Gradle plugin obfuscates project directory

**URL:** <https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836>\
**Category:** IntelliJ Platform\
**Created:** [May 28, 2025, 2:00pm UTC](https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836 "2025-05-28T14:00:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcarbone-comcast](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dcarbone-comcast](https://platform.jetbrains.com/u/dcarbone-comcast)\
**Post date:** [May 28, 2025, 2:00pm UTC](https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836/1 "2025-05-28T14:00:03Z")

</div>

Hi there,

I am working on a Gradle project for the first time since the new UI was unleashed upon the world, and am currently fighting a bizarre quirk of the new Gradle integration.

This project (not written by me, I am merely attempting to contribute to it), has the Gradle project in a sub-directory under the main repository root. When I import the Gradle project, something decides it would be a good idea to entire obfuscate any / all files _above_ that sub-directory.

It forcibly moves my view away from the actual root of the repo (which is the directory I actually _opened_, and where I actually want to be…), into a new bizarre view that pretends the sub-directory containing the Gradle project is the actual root repository directory.

This is absolutely infuriating. I can no longer see or edit our helm chart config, our github config, anything in a sibling directory to the gradle project’s sub-directory. Bizarrely, I _can_ see _files_ in the root directory but they are marked as “ignored” for some reason and come with all the annoyances that entails.

I cannot find an easy way to say “import gradle project in-place without futzing with my project directory view”.

How do I do this? How do I get it to import a gradle project without annihilating the project view?

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [May 28, 2025, 2:10pm UTC](https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836/2 "2025-05-28T14:10:54Z")

</div>

Hi, is it a public project?  
This seems to be a Grade problem, but we need more details.  
I can only say that the intellij platform plugin does not apply any obfuscation.

---

<div class="post-metadata">

**Author:** ![dcarbone-comcast](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dcarbone-comcast](https://platform.jetbrains.com/u/dcarbone-comcast)\
**Post date:** [May 28, 2025, 3:10pm UTC](https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836/3 "2025-05-28T15:10:39Z")

</div>

Unfortunately no, it is not a public project.

The directory structure is as such:

```auto
.
|-.github/
|-helm/
|-gradle/project/
| |-gradle/
| |-module1/
| |-module2/
| |-other project files
|-.gitignore
|-.gitmodules
|-README.md
|-other root files and directories

```

When I first open the project, it shows the root directory `.` with all child files & directories just fine. As soon as I load the Gradle project, it turns the left-side project view into this:

```auto
.
|-gradle-project-name/
| |-gradle/
| |-module1/
| |-module2/
| |-other project files
|-.gitignore (now marked as ignored
|-.gitmodules (now marked as ignored)
|-README.md (now marked as ignored)
|-other root files only (and marked as ignored)

```

I can _view_ everything if I go select `Project Files` from the drop down above the left-hand bar, but it still marks everything as “ignored” and all that entails.

How do I disable / modify this behavior?

---

<div class="post-metadata">

**Author:** ![dcarbone-comcast](https://avatars.discourse-cdn.com/v4/letter/d/f17d59/32.png) [@dcarbone-comcast](https://platform.jetbrains.com/u/dcarbone-comcast)\
**Post date:** [May 28, 2025, 4:18pm UTC](https://platform.jetbrains.com/t/gradle-plugin-obfuscates-project-directory/1836/4 "2025-05-28T16:18:21Z")

</div>

Its also bizarrely hiding files & directories under the `gradle/project/*` path, including preventing _changed_ files from appearing in the git commit list.

Utterly strange. I’ve had to just disable gradle integration entirely to get it to make any kind of sense.
