[
https://issues.apache.org/jira/browse/BUILDR-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289525#comment-13289525
]
Alex Boisvert commented on BUILDR-643:
--------------------------------------
There's no direct way to exclude artifacts from upload... off the top of my
head my suggestion would be to define two projects and only call upload on the
second project
define 'main' do
# all your normal project properties here
package(:jar)
package(:war)
end
define 'upload project' do
# synthetic project used only for uploading
package(jar).from(project('main').package(:jar))
end
% buildr upload:upload => only uploads jar artifact ...
This is pretty rough but hopefully gives you the idea.
> Exclude upload / release of war files
> -------------------------------------
>
> Key: BUILDR-643
> URL: https://issues.apache.org/jira/browse/BUILDR-643
> Project: Buildr
> Issue Type: Question
> Reporter: Michael Nielsen
>
> Hi
> I'm new to Buildr / Rake so might be a silly question.
> We package our war project as both jar and war. However we don't want the war
> files to be uploaded as artifacts. Is there anyway to do that?
> Regards
> Michael
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira