Hello, I was looking at putting together a PR to <...
# plugin-development
r
Hello, I was looking at putting together a PR to Javapackager so that it could be compatible with the configuration cache. One of the issues is that it creates tasks at execution time to zip/tar the application. Having read about service injection I was under the impression that
ArchiveOperations
could create archives, but it seems to only have methods for reading from them. Am I missing something?
v
No, you didn't 🙂
Hm, that documentation section is extremely misleading
But of course the plugin should not create tasks at execution time. Especially as that does not really work as expected anyway. It should just use any library or std class that can create tars or zips.
Or create the tasks at configuration time of course
Afair there is no built-in way to create tars or zips except by properly defining and using according tasks.
r
yeah, the documentation even says "create" I guess I'll need to replace how archives are made then
👌 1
v
It also says it is in the package
org.gradle.api.tasks.bundling
which also is not true. The
Tar
and
Zip
task with which you can create archives are in that package, the
ArchiveOperations
not. 🙈
Also "You can obtain an instance of
ArchiveOperations
using the
project.zipTree
property" is total non-sense. I wonder which 3-week intern wrote that section. 😄
r
didn't even notice that part
that's a problem
r
thanks, I made an issue as well: https://github.com/gradle/gradle/issues/31059
👌 1