Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude compiler.xml and artifacts when using Gradle #3236

Merged
merged 1 commit into from
Nov 17, 2019
Merged

exclude compiler.xml and artifacts when using Gradle #3236

merged 1 commit into from
Nov 17, 2019

Conversation

davidkron
Copy link
Contributor

In our IntelliJ projects where we are using Gradle, the file .idea/compiler.xml and files inside the .idea/artifacts folder are automatically generated by IntelliJ based on the Gradle build model.

Reasons for making this change:

Automatically generated files should be ignored in version control.

I did comment out my changes though, as the existing Gradle/Maven related ignore rules are commented out as well.

Links to documentation supporting these rule changes:

https://intellij-support.jetbrains.com/hc/en-us/articles/206544839?page=3#comment_360000710180

Answer of Serge Baranov to my comment:
The files generated on import and not having any manual customizations can be safely excluded from the version control.

In our IntelliJ projects where we are using Gradle, the file .idea/compiler.xml and files inside the .idea/artifacts folder are automatically generated by IntelliJ based on the Gradle build model. As these files are generated, they should be ignored in version control.
@shiftkey
Copy link
Member

@davidkron thanks!

@shiftkey shiftkey merged commit c3e97a0 into github:master Nov 17, 2019
tokuhira pushed a commit to tokuhira/gitignore that referenced this pull request Dec 16, 2019
In our IntelliJ projects where we are using Gradle, the file .idea/compiler.xml and files inside the .idea/artifacts folder are automatically generated by IntelliJ based on the Gradle build model. As these files are generated, they should be ignored in version control.
r2pgl pushed a commit to r2pgl/gitignore that referenced this pull request Mar 15, 2020
In our IntelliJ projects where we are using Gradle, the file .idea/compiler.xml and files inside the .idea/artifacts folder are automatically generated by IntelliJ based on the Gradle build model. As these files are generated, they should be ignored in version control.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants