Ignore/exclude IDEA-generated classpath index files (#2094)

See
https://youtrack.jetbrains.com/issue/IDEA-305759/Gradle-cannot-handle-classpath.index-duplicates
for more info -- it looks like this is fixed in some recent versions but
as of right now it doesn't seem like it's fixed on the Google-managed
version
This commit is contained in:
gbrodman 2023-08-07 11:10:25 -04:00 committed by GitHub
parent aab89fb816
commit 00051dbc0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View file

@ -79,6 +79,7 @@ autogenerated/
**/*.iml
nomulus.ipr
nomulus.iws
**/classpath.index
# Auto-generated java classes by Intellij
*/src/main/generated/

View file

@ -193,3 +193,10 @@ jacocoTestCoverageVerification {
}
}
}
project.tasks.withType(Copy) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
project.tasks.withType(Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}