Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kshakhmatova authored and johnrengelman committed Jan 19, 2020
1 parent 2bd753b commit c99be91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/docs/configuration/relocation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In the resulting JAR, the class file is relocated from `junit/textui/TestRunner.
It is not necessary to specify any patterns for matching, it will operate simply on the prefix
provided.

> Relocation will be applied globally to all instance of the matched prefix.
> Relocation will be applied globally to all instances of the matched prefix.
That is, it does **not** scope to _only_ the dependencies being shadowed.
Be specific as possible when configuring relocation as to avoid unintended relocations.

Expand All @@ -48,12 +48,12 @@ shadowJar {

## Automatically Relocating Dependencies

Shadow ships with a task that can be used to automatically configure all packages from all dependencies to be relocated.
Shadow is shipped with a task that can be used to automatically configure all packages from all dependencies to be relocated.
This feature was formally shipped into a 2nd plugin (`com.github.johnrengelman.plugin-shadow`) but has been
removed for clarity reasons in version 4.0.0.

To configure automatic dependency relocation, declare a task of type `ConfigureShadowRelocation` and configure the
`target` parameter to be the `ShadowJar` task you wish to auto configure. You will also need to declared a task
`target` parameter to be the `ShadowJar` task you wish to auto configure. You will also need to declare a task
dependency so the tasks execute in the correct order.

```groovy
Expand Down

0 comments on commit c99be91

Please sign in to comment.