Fix plugin-package and assemble task configuration.

The use of `.with {}` was not working correctly, where the wrong object
was being return (it was returning the description String instead of the
task itself). Moved out into seperate methods and return the actual
task.