This message was deleted.
# community-support
s
This message was deleted.
1
e
Copy code
from(zipTree(jarTaskProvider))
although the manifest might get clobbered, not sure. in any case, you don't need
dependsOn
j
You mean
project.zipTree(jarTaskProvider)
?
Copy code
Cannot convert the provided notation to a File or URI: task ':jar'.
e
hmm night need
zipTree(files(jarTaskProvider))
j
Copy code
Cannot convert the provided notation to a File or URI: file collection.
Seems like using the
archiveFile
directly with
project.zipTree
does the job:
Copy code
from(project.zipTree(jarTaskProvider.map { it.archiveFile }))
Thanks, @ephemient!
v
Nah, don't use
zipTree
. With that you first build a jar just to expand it again just to pack it again, that's a huge waste.
Archive tasks are copy specs. Just do
with(jarTask)
or what it was called.
👍 3