Description
If a package_as_<type> method returns a Task that defines an implementation of install/uninstall/upload (and maybe other methods) these methods are never invoked. The package method extends each package object with ActsAsArtifact which overrides those methods.
This can be seen when using the :gem package type. package_as_gem returns a PackageGemTask that delegates those methods to the gem script. When running 'buildr install' with the attached buildfile you can observe that it does not attempt to install the gem. Instead the gem is installed in the local maven repository.