diff --git a/src/docs/about/README.md b/src/docs/about/README.md index 29454afc1..de68724f3 100644 --- a/src/docs/about/README.md +++ b/src/docs/about/README.md @@ -50,3 +50,4 @@ so Shadow was published there. * [Petar Petrov](https://github.com/petarov) * [Mark Vieira](https://github.com/mark-vieira) * [James Nelson](https://github.com/JamesXNelson) +* [Roberto Perez Alcolea](https://github.com/rpalcolea) diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index a9bee6af6..cccc8d7e5 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -3,6 +3,7 @@ ## v5.0.0 (2019-01-19) * Require Gradle 5.0+ * Fix issue with build classifier `-all` being dropped in Gradle 5.1+ +* [Roberto Perez Alcolea](https://github.com/rpalcolea) - Exclude project dependencies from minimization [#420](https://github.com/johnrengelman/shadow/pull/420) ## v4.0.4 (2019-01-19) diff --git a/src/docs/configuration/minimizing/README.md b/src/docs/configuration/minimizing/README.md index fba428179..8f7dfb65e 100644 --- a/src/docs/configuration/minimizing/README.md +++ b/src/docs/configuration/minimizing/README.md @@ -23,3 +23,16 @@ shadowJar { ``` > Dependencies scoped as `api` will automatically excluded from minimization and used as "entry points" on minimization. + +Similar to dependencies, projects can also be excluded. + +```groovy +shadowJar { + minimize { + exclude(project(":client")) + } +} +``` + +> When excluding a `project`, all dependencies of the excluded `project` are automatically + excluded as well. \ No newline at end of file