Starting from version 5 gradle
changed Archive Tasks behavior
This breaks shadowJar
task default behavior which doesn't create <name>-<version>-all.jar
artifact any more.
How to revert this behavior and create *-all.jar
?
Starting from version 5 gradle
changed Archive Tasks behavior
This breaks shadowJar
task default behavior which doesn't create <name>-<version>-all.jar
artifact any more.
How to revert this behavior and create *-all.jar
?
Instead of using deprecated classifier and archiveName configure shadowJar
plugin the following way:
shadowJar {
archiveClassifier = 'all'
}
Or since Gradle 5.1 using Property
:
shadowJar {
archiveClassifier.set('all')
}
See more about the issue discussion:
https://github.com/johnrengelman/shadow/issues/446#issuecomment-460328699 https://github.com/johnrengelman/shadow/issues/450