8000 Ignore Eclipse .project and .classpath when using build tools Maven or Gradle by baincd · Pull Request #3920 · github/gitignore · GitHub
[go: up one dir, main page]

Skip to content

Ignore Eclipse .project and .classpath when using build tools Maven or Gradle#3920

Merged
bdougie merged 1 commit intogithub:mainfrom
baincd:ignore-eclipse-build-plugin-gen-files
Dec 13, 2021
Merged

Ignore Eclipse .project and .classpath when using build tools Maven or Gradle#3920
bdougie merged 1 commit intogithub:mainfrom
baincd:ignore-eclipse-build-plugin-gen-files

Conversation

@baincd
Copy link
Contributor
@baincd baincd commented Dec 11, 2021

Reasons for making this change:

Eclipse's documentation confusingly recommends .classpath and .project being under version control. That recommendation makes sense if neither maven or gradle is used.

However, when using either maven or gradle those files are generated each time based on the maven or gradle configuration - which causes issues when those files are version controlled. That is why I recommended ignoring these files only if using maven or gradle, but not for all Eclipse Java projects.

Links to documentation supporting these rule changes:

See #3710 for discussion and additional documentation regarding this change

@jglick
Copy link
jglick commented Dec 13, 2021

And for the record, from #3710 (comment), we already have

and
# Java annotation processor (APT)
.factorypath
which can also be generated from pom.xml at least.

Copy link
Contributor
@bdougie bdougie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the links and clarification

@bdougie bdougie merged commit e89e043 into github:main Dec 13, 2021
baincd added a commit to baincd/gitignore.io-gitignore that referenced this pull request Dec 19, 2021
These changes have been incorporated directly into the github/gitignore
Maven and Gradle templates (github/gitignore#3920),
and therefore no longer need to be defined in the patch files as well.

This partially reverts #403
lovelypuppy0607 added a commit to lovelypuppy0607/gitignore-1 that referenced this pull request May 11, 2023
…tch (#439)

These changes have been incorporated directly into the github/gitignore
Maven and Gradle templates (github/gitignore#3920),
and therefore no longer need to be defined in the patch files as well.

This partially reverts #403
ukushu pushed a commit to ukushu/gitignore that referenced this pull request Nov 26, 2025
…tch (#439)

These changes have been incorporated directly into the github/gitignore
Maven and Gradle templates (github/gitignore#3920),
and therefore no longer need to be defined in the patch files as well.

This partially reverts #403
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.

3 participants

0