Grab uses ivy to retrieve the specified library (plus all its dependencies) from the maven main repository. He then adds these loaded libraries to the path of the bootloader class, which works with the tge current script.
Adding jar to the classpath simply adds the specified jar to the system path.
Since there are no dependencies in this example, this is probably a requirement for the library to be loaded by the system class loader.
To check this, try adding
@GrabConfig(systemClassLoader= true) @Grab(group='xpp3', module='xpp3', version='1.1.3.4.O')
Instead of a single line, take now
source share