I think it's a good idea and has come up before. The current workaround is to do something along the lines of,
repositories.release_to[:url] = if VERSION =~ /SNAPSHOT/ "http://example.com/snapshots" else "http://example.com/releases" end On Fri, Oct 4, 2013 at 9:14 AM, Jean-Philippe Caruana <[email protected]>wrote: > Hi, > > if I'm not wrong, there is not buildr equivalent to this maven > release/snapshot distinction : > <distributionManagement> > <repository> > <id>releases</id> > <url>http://maven.toto.com/content/repositories/releases/ > </url> > </repository> > <snapshotRepository> > <id>snapshots</id> > <url>http://maven.toto.com/content/repositories/snapshots > </url> > </snapshotRepository> > </distributionManagement> > > > In buildr, I can do : > repositories.release_to = > 'http://maven.toto.com/content/repositories/releases/' > > > but I would love to do a : > repositories.release_to = > 'http://maven.toto.com/content/repositories/releases/' > repositories.snapshot_to = > 'http://maven.toto.com/content/repositories/snapshots/' > > > I haven't looked at the code yet (artifact.rb I guess), but I imagine > this would be not so hard to implement :-) > What do you think ? > > Thanks. > -- > Jean-Philippe Caruana - [email protected] > http://www.target2sell.com >
