Does ".idea/workspace.xml" contain any user-specific settings that would make it problematic to be in version control?
people mention that it's usually annoying when people check in `.idea/*` into their source code repository. This is because they often times contain specific developer settings that you do not want to share with others. And then when checking in, your`.idea/*` directory will always show up dirty. Thus why people put it on their ignore list like .gitignore to exclude it.
But in our Gradle java project, ".idea/workspace.xml" has a very important feature:
<system id="GRADLE">
<state>
<task path="$PROJECT_DIR$/my-project/web-service-stubs">
<activation>
<before_compile>
<task name="build" />
</before_compile>
<before_rebuild>
<task name="build" />
</before_rebuild>
</activation>
</task>
This gradle task builds the web service stubs needed to Build the project. But without ".idea/workspace.xml" checked in, this means that you won't get this important change and your Build project will fail until manually making this change.
How often is workspace.xml dirtied from normal development? Is checking this file in going to become an annoying nuisance?
Please sign in to leave a comment.
Please see https://intellij-support.jetbrains.com/hc/articles/206544839.
Sharing workspace.xml file is not recommended, it does contain user specific settings.
I created https://youtrack.jetbrains.net/issue/IDEA-197297 as a result. thanks.