Repository: GradleUp/shadow (kotlin)

Issue:
Weird minimize() behavior
I recently converted my project to a multi-module project, but I'm having trouble using shadowjar's minimize feature. Here is my project structure:
```
Root project 'shadow-jar-test'
+--- Project ':api'
\--- Project ':core'
```
This is a multi-module project, `core` depends on the `api` module, and both core and api have some third-party dependencies(For example Kotlin std library). And, I implemented these 2 modules in the root project's build script and want to package them into a jar.

The problem is, when I add minimize() to the shadowjar task, it reduces all my code, it seems that it thinks that the subproject is also a third-party dependency.
```groovy
shadowJar {
    relocate 'kotlin', 'lib.kotlin'
    relocate 'org.jetbrains', 'lib.org.jetbrains'

    // minimize will remove the :core and :api module?
    minimize()
}
```
I also tried add exclude statement into minimize: 
```groovy
minimize {
        exclude(project(":core"))
        exclude(project(":api"))
}
```
This will indeed package core and api, but the third-party libraries that core and api depend on are still not packaged

### Shadow Version
7.0.0

### Gradle Version
7.1

### Expected Behavior
Properly minimize dependencies

### Actual Behavior
It also minimized my project code?!

### Gradle Build Script(s)
I created a example project to reproduce it: 
https://github.com/re-ovo/shadow-jar-test

This is the root project build script: 
https://github.com/re-ovo/shadow-jar-test/blob/master/build.gradle

Pull request:
Closes #744.

Patch:
diff --git a/docs/configuration/minimizing/README.md b/docs/configuration/minimizing/README.md
index 897b815c8..91ab66b5d 100644
--- a/docs/configuration/minimizing/README.md
+++ b/docs/configuration/minimizing/README.md
@@ -1,7 +1,7 @@
 # Minimizing
 
-Shadow can automatically remove all classes of dependencies that are not used by the project, thereby minimizing the
-resulting shadowed JAR.
+Shadow can automatically remove all JARs and classes of dependencies that are not used by the project, thereby
+minimizing the resulting shadowed JAR.
 
 === "Kotlin"
 
@@ -47,7 +47,7 @@ a `dependency` is interpreted as a regular expression.
 > Dependencies scoped as `api` will be automatically excluded from minimization and used as "entry points" on
 > minimization.
 
-Similar to dependencies, projects can also be excluded.
+Similar to [`ShadowJar.dependencies`][ShadowJar.dependencies], projects can also be excluded.
 
 === "Kotlin"
 
@@ -69,5 +69,9 @@ Similar to dependencies, projects can also be excluded.
     }
     ```
 
-> When excluding a `project`, all dependencies of the excluded `project` are automatically
-> excluded as well.
+> When excluding a `project`, all dependencies of the excluded `project` are automatically excluded from 
+> minimization as well.
+
+
+
+[ShadowJar.dependencies]: ../../api/shadow/com.github.jengelman.gradle.plugins.shadow.tasks/-shadow-jar/dependencies.html


Test patch:
diff --git a/src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/MinimizeTest.kt b/src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/MinimizeTest.kt
index 108305efa..b0fda4b83 100644
--- a/src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/MinimizeTest.kt
+++ b/src/functionalTest/kotlin/com/github/jengelman/gradle/plugins/shadow/MinimizeTest.kt
@@ -140,6 +140,9 @@ class MinimizeTest : BasePluginTest() {
    * 'Client', 'Server' and 'junit' are independent.
    * Unused classes of 'client' and theirs dependencies shouldn't be removed.
    */
+  @Issue(
+    "https://github.com/GradleUp/shadow/issues/744",
+  )
   @Test
   fun excludeProjectFromMinimize() {
     writeClientAndServerModules(