Repository: raphw/byte-buddy (language: java)

Issue:
Some source files in this repository are covered by .gitignore rules
I was searching through the code in the repository using [ripgrep](https://github.com/BurntSushi/ripgrep), and was at first very confused as to why search results from some source files were missing. For context, ripgrep uses .gitignore files as [a filter to speed up the search](https://github.com/BurntSushi/ripgrep/blob/61101289fabc032fd8e90009c41d0b78e6dfc9a2/GUIDE.md#automatic-filtering) by default.

So I had a look at the .gitignore file, and sure enough, there is a rule which ignores some source files in this repository (they were committed before the rule in question was added): https://github.com/raphw/byte-buddy/blob/d4b5cdbed4a94fccfe457daf4913dccc8c02a175/.gitignore#L24

Here are the source files covered by the .gitignore rule:

```
$ git ls-files --ignored --exclude-standard
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/AarGradleTransformAction.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyAndroidPlugin.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyAndroidService.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyAsmClassVisitorFactory.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyInstrumentationParameters.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/ByteBuddyLocalClassesEnhancerTask.java
byte-buddy-gradle-plugin/android-plugin/src/main/java/net/bytebuddy/build/gradle/android/package-info.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTask.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTaskConfiguration.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/AbstractByteBuddyTaskExtension.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/Adjustment.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyJarTask.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyJarTaskExtension.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyPlugin.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddySimpleTask.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddySimpleTaskConfiguration.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddySimpleTaskExtension.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyTask.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyTaskConfiguration.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ByteBuddyTaskExtension.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/Discovery.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/GradleBuildLogger.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/IncrementalResolver.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/ObjectFactory.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/PluginArgument.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/Transformation.java
byte-buddy-gradle-plugin/src/main/java/net/bytebuddy/build/gradle/package-info.java
byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyPluginTest.java
byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/ByteBuddyTaskExtensionTest.java
byte-buddy-gradle-plugin/src/test/java/net/bytebuddy/build/gradle/IncrementalResolverForChangedFilesTest.java
```


Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index 663964e08ab..b7eeca1c7fb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,10 +20,8 @@ maven-checksum-extension.jar
 
 # Gradle
 .gradle/
-byte-buddy-gradle-plugin/build/
-byte-buddy-gradle-plugin/**/build/
-byte-buddy-gradle-plugin/buildSrc/build/
-byte-buddy-gradle-plugin/gradle/build/
+build/
+!**/src/**/build/
 gradle-*-bin.zip
 gradle-wrapper.jar
 


Test patch: