Skip to content

Commit

Permalink
Use empty string to disable version (#512)
Browse files Browse the repository at this point in the history
Fixes #508.
  • Loading branch information
jianglai authored and johnrengelman committed Sep 7, 2019
1 parent bce1bae commit 2d2bd66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/docs/configuration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ details.
## Configuring Output Name

Shadow configures the default `shadowJar` task to set the output JAR's `destinationDir`, `baseName`, `appendix`,
`version`, and `extension` to the same default values as Gradle does for all `Jar` tasks.
`archiveVersion`, and `extension` to the same default values as Gradle does for all `Jar` tasks.
Additionally, it configures the `classifier` to be `all`.

If working with a Gradle project with the name `myApp` and version `1.0`, the default `shadowJar` task will output a
If working with a Gradle project with the name `myApp` and archiveVersion `1.0`, the default `shadowJar` task will output a
file at: `build/libs/myApp-1.0-all.jar`

As with all `Jar` tasks in Gradle, these values can be overridden:
Expand All @@ -26,8 +26,8 @@ As with all `Jar` tasks in Gradle, these values can be overridden:
// Output to build/libs/shadow.jar
shadowJar {
baseName = 'shadow'
classifier = null
version = null
classifier = ''
archiveVersion = ''
}
```

Expand Down

0 comments on commit 2d2bd66

Please sign in to comment.