I\'m using the Java Plugin in Gradle
apply plugin: \'java\'
I also configure the Jar-task using:
version = \'1.0\'
jar {
ma
Probably not a comprehensive answer you're looking for, but some pointers in the right direction:
The internals of the jar task don't seem to be documented in a lot of detail, so you'll have to look through source to get to what you're looking for. The jar task comes from the java plugin here. Which in turn adds a task from this class. This class doesn't do a whole lot beyond extending from Jar.java.
So it would seem the closure:
jar {
....
}
calls the constructor here and sets the properties defined in the jar closure. Further Jar class extends from Zip.java, while overriding the extension of the archive file, and adding a manifest property.
--
PS: This still doesn't quite help me understand with jar from your original question, but I like your line of questioning, I'm learning a few things along the way!