From d2659726b6ef64fb1edbf9be5686817005d7b455 Mon Sep 17 00:00:00 2001 From: Joshua Barr <70981087+jobarr-amzn@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:17:05 -0800 Subject: [PATCH] Update .gitignore (#1027) We don't use these anymore: - Eclipse - Perforce - Maven --- .gitignore | 180 ++++++++++++++++++++++------------------------------- 1 file changed, 76 insertions(+), 104 deletions(-) diff --git a/.gitignore b/.gitignore index b47ba47a34..3f9dc83b29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,83 +1,16 @@ -.eclipseout -.p4config -/build -/*.iml -junit*.properties -tmp* -/target -/resources -*~ - -# Created by https://www.gitignore.io/api/vim,emacs,maven,gradle,eclipse,intellij -# Edit at https://www.gitignore.io/?templates=vim,emacs,maven,gradle,eclipse,intellij - -### Eclipse ### - -.metadata -*.tmp -*.bak -*.swp -*~.nib -local.properties -.settings/ -.loadpath -.recommenders - -# External tool builders -.externalToolBuilders/ - -# Locally stored "Eclipse launch configurations" -*.launch - -# PyDev specific (Python IDE for Eclipse) -*.pydevproject - -# CDT-specific (C/C++ Development Tooling) -.cproject - -# CDT- autotools -.autotools - -# Java annotation processor (APT) -.factorypath - -# PDT-specific (PHP Development Tools) -.buildpath +## Manually Maintained ## -# sbteclipse plugin -.target +### JetBrains ### +# jetbrains+all still doesn't quite go far enough +/.idea/ -# Tern plugin -.tern-project +### SDKMan ### +/.sdkmanrc -# TeXlipse plugin -.texlipse -# STS (Spring Tool Suite) -.springBeans -# Code Recommenders -.recommenders/ - -# Annotation Processing -.apt_generated/ - -# Scala IDE specific (Scala & Java development for Eclipse) -.cache-main -.scala_dependencies -.worksheet - -### Eclipse Patch ### -# Eclipse Core -.project - -# JDT-specific (Eclipse Java Development Tools) -.classpath - -# Annotation Processing -.apt_generated - -.sts4-cache/ +# Created by https://www.toptal.com/developers/gitignore/api/vim,emacs,macos,gradle,jetbrains+all +# Edit at https://www.toptal.com/developers/gitignore?templates=vim,emacs,macos,gradle,jetbrains+all ### Emacs ### # -*- mode: gitignore; -*- @@ -130,12 +63,10 @@ flycheck_*.el /network-security.data -### Intellij ### -# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +### JetBrains+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 -.idea - # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml @@ -143,6 +74,9 @@ flycheck_*.el .idea/**/dictionaries .idea/**/shelf +# AWS User-specific +.idea/**/aws.xml + # Generated files .idea/**/contentModel.xml @@ -163,9 +97,14 @@ flycheck_*.el # When using Gradle or Maven with auto-import, you should exclude module files, # since they will be recreated, and may cause churn. Uncomment if using # auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml # .idea/modules.xml # .idea/*.iml # .idea/modules +# *.iml +# *.ipr # CMake cmake-build-*/ @@ -188,6 +127,9 @@ atlassian-ide-plugin.xml # Cursive Clojure plugin .idea/replstate.xml +# SonarLint plugin +.idea/sonarlint/ + # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties @@ -200,32 +142,52 @@ fabric.properties # Android studio 3.1+ serialized cache file .idea/caches/build_file_checksums.ser -### Intellij Patch ### -# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 +### JetBrains+all Patch ### +# Ignore everything but code style settings and run configurations +# that are supposed to be shared within teams. -# *.iml -# modules.xml -# .idea/misc.xml -# *.ipr +.idea/* + +!.idea/codeStyles +!.idea/runConfigurations + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* -# Sonarlint plugin -.idea/sonarlint - -### Maven ### -target/ -pom.xml.tag -pom.xml.releaseBackup -pom.xml.versionsBackup -pom.xml.next -release.properties -dependency-reduced-pom.xml -buildNumber.properties -.mvn/timing.properties -.mvn/wrapper/maven-wrapper.jar +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud ### Vim ### # Swap [._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files [._]*.sw[a-p] [._]s[a-rt-v][a-z] [._]ss[a-gi-z] @@ -233,6 +195,7 @@ buildNumber.properties # Session Session.vim +Sessionx.vim # Temporary .netrwhist @@ -243,7 +206,8 @@ tags ### Gradle ### .gradle -/build/ +**/build/ +!src/**/build/ # Ignore Gradle GUI config gradle-app.setting @@ -251,13 +215,21 @@ gradle-app.setting # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) !gradle-wrapper.jar +# Avoid ignore Gradle wrappper properties +!gradle-wrapper.properties + # Cache of project .gradletasknamecache -# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 -# gradle/wrapper/gradle-wrapper.properties +# Eclipse Gradle plugin generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath ### Gradle Patch ### -**/build/ +# Java heap dump +*.hprof + +# End of https://www.toptal.com/developers/gitignore/api/vim,emacs,macos,gradle,jetbrains+all -# End of https://www.gitignore.io/api/vim,emacs,maven,gradle,eclipse,intellij