publishing both a pom and an ivy file

324 views
Skip to first unread message

Eric Bowman

unread,
Aug 31, 2012, 8:22:10 AM8/31/12
to simple-b...@googlegroups.com
Hi,

Is it possible to publish both a .pom and an ivy*.xml file? It seems like an either/or proposition, driven by publishMavenStyle = true or false.

We're integrating with a formerly-ivy, now nexus oriented world, and our old ant/ivy builds publish both; I'd like to be able to do the same with sbt.

Thanks,
Eric

Erlend Hamnaberg

unread,
Sep 5, 2012, 3:50:59 AM9/5/12
to simple-b...@googlegroups.com
Hi Eric.

On Fri, Aug 31, 2012 at 2:22 PM, Eric Bowman <ebo...@gilt.com> wrote:
> Hi,
>
> Is it possible to publish both a .pom and an ivy*.xml file? It seems like an
> either/or proposition, driven by publishMavenStyle = true or false.
>
That is correct.

val publishMavenStyle = SettingKey[Boolean]("publish-maven-style",
"Configures whether to generate and publish a pom (true) or Ivy file
(false).", BSetting)

> We're integrating with a formerly-ivy, now nexus oriented world, and our old
> ant/ivy builds publish both; I'd like to be able to do the same with sbt.
>

I suppose if you can generate the ivy file and putting it into the
published artifacts, then you would be able to publish it, even with
maven style publishing.

Keys to look at seems like:

deliver

and

packagedArtifacts

-E

Josh Suereth

unread,
Sep 5, 2012, 7:05:58 AM9/5/12
to simple-b...@googlegroups.com

That's exactly true.   You should be able to generate an ivy and maven file, although simple functions are not exposed, you may have to dig into Ivy itself

--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

Daniel Sobral

unread,
Sep 8, 2012, 9:18:18 AM9/8/12
to simple-b...@googlegroups.com

Man pages? What a luxury! In my time, we wrote our own launcher script, and thanked for not having to build the jar!  :-)

Reply all
Reply to author
Forward
0 new messages