You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Peter Donald (JIRA)" <ji...@apache.org> on 2013/10/02 00:34:24 UTC

[jira] [Commented] (BUILDR-678) GPG addon does not sign sources and javadocs when created with package_with_*

    [ https://issues.apache.org/jira/browse/BUILDR-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783428#comment-13783428 ] 

Peter Donald commented on BUILDR-678:
-------------------------------------

I have added an extra utility method Buildr::GPG.sign_and_upload_all_packages that should perform the feature you need. However it should be possible with a little more glue as demonstrated in the following snippet

{code:title=buildfileborderStyle=solid}
require 'buildr/gpg'

repositories.release_to = 'file:///tmp'

define "proj" do
  project.version = "1.0"
  project.group = "org.example"  
  package(:jar)
  package_with_sources
end

p = Buildr.project("proj")
if Buildr::VERSION > '1.4.12'
  Buildr::GPG.sign_and_upload_all_packages(p)
else
  p.packages.collect{|a|Buildr::GPG.sign_and_upload(p, a)}
end
{code}

Is this sufficient?

> GPG addon does not sign sources and javadocs when created with package_with_*
> -----------------------------------------------------------------------------
>
>                 Key: BUILDR-678
>                 URL: https://issues.apache.org/jira/browse/BUILDR-678
>             Project: Buildr
>          Issue Type: Bug
>            Reporter: Tammo van Lessen
>
> The GPG addon automatically signs all artifacts defined within a project definition. If, however, artifacts are created later, e.g. by using package_with_javadoc or package_with_sources, these artifacts are not signed. I guess it is difficult to provide a good fix for it, perhaps it would be helpful to expose an extra method 'sign_artifacts' which adds a sign task for all artifacts. This method can then be called after package_with_*



--
This message was sent by Atlassian JIRA
(v6.1#6144)