what is the difference between assemble
and jar
task of java plugin
in gradle?
I tried executing them with a sample Hello world project they both seems to do the same job.
Since jar
is a single task, which assembles a jar-archive for current project, assemble
is, according to documentation:
assemble All archive tasks in the project, including jar. Some plugins add additional archive tasks to the project. Task Assembles all the archives in the project.
It is build-cycle task, which execute all the task of this build-cycle phase. Like a check
task, which runs all test and verification task, assemble
Runs all task, which essemble some artifacts. And the 'jar' could be not the only such a task in the project, some plugins could add them too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With