Dependencies were not being saved in the 1.20 jar file in a embedded way

This commit is contained in:
zontreck 2023-11-19 06:46:51 -07:00
parent e2ef0a02f6
commit 79ae46c505
2 changed files with 6 additions and 1 deletions

View file

@ -203,6 +203,11 @@ tasks.named('processResources', ProcessResources).configure {
// Example for how to get properties into the manifest for reading at runtime.
tasks.named('jar', Jar).configure {
from {
configurations.provided.asFileTree.collect{zipTree(it)}
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes([
'Specification-Title' : mod_id,