Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 4218 invoked from network); 26 Jun 2009 15:29:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jun 2009 15:29:11 -0000 Received: (qmail 93583 invoked by uid 500); 26 Jun 2009 15:29:20 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 93541 invoked by uid 500); 26 Jun 2009 15:29:20 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 93510 invoked by uid 99); 26 Jun 2009 15:29:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 15:29:20 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of garima.bathla@gmail.com designates 209.85.222.182 as permitted sender) Received: from [209.85.222.182] (HELO mail-pz0-f182.google.com) (209.85.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Jun 2009 15:29:11 +0000 Received: by pzk12 with SMTP id 12so1956637pzk.14 for ; Fri, 26 Jun 2009 08:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=eJqyFhhhZkoHSwTcTMgBb02eU1nLcXPddmJqYBs1cWc=; b=DyXPqrfNBvR8O3pDhEBdr9kwKHwk8L7ekVf5j/hZKiQ6SUe2V5krPURzxjmvXRVJ7Z LkfaC47jEvlpjodjd0MH+9lg7XRVy6GzwzqojDbmmvn5qqtmBk1vLCjmlPy4F2WJa5iD XT+4yv/XjD9+1xI32y8mLpwR36piCZYiH+8+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Rekt2HDh7GLyw0nanyiHtj8TDZXh/zd1EqlWXX+AcXd4EtyfLnV+dKPzrkE1rxsidA xvih2ytXPJMwTzEWMG1tyoIQoM2/wp+4Bseee4mdXo3YuwF5W4Zjn+pHvEqiFHbKv+RY vWh8bbxhSHs4Ld8qwWWn7vhElGCYm6G6P2jSM= MIME-Version: 1.0 Received: by 10.114.67.17 with SMTP id p17mr6005722waa.163.1246030129909; Fri, 26 Jun 2009 08:28:49 -0700 (PDT) In-Reply-To: <628373.52081.qm@web30807.mail.mud.yahoo.com> References: <1fb30820906252021i50f48f76r33cffbc04ee3cf66@mail.gmail.com> <628373.52081.qm@web30807.mail.mud.yahoo.com> Date: Fri, 26 Jun 2009 08:28:49 -0700 Message-ID: <1fb30820906260828k520f2868yaae05aabe902501@mail.gmail.com> Subject: Re: Ivy confs masquerading as dependencies' revisions From: Garima Bathla To: ivy-user@ant.apache.org Content-Type: multipart/alternative; boundary=00163646c77a45cfce046d41ff05 X-Virus-Checked: Checked by ClamAV on apache.org --00163646c77a45cfce046d41ff05 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks, Maarten. I'm familiar with dynamic revisions, but I'm straining to figure out how they would help in this situation. Suppose the following: * I've published both JUnit 3.8.2 and JUnit 4.6 to my Ivy repository. * I've managed to specify a dynamic revision in my own module's dependency on JUnit that encompasses both 3.8.2 and 4.6. (I'm not sure there's a way to specify only 3.8.2 and 4.6 and nothing else without resorting to plugging in a custom version matcher. But let's set aside that issue for now.) * I am developing another Ivy module that depends on the Ivy module I've just published, the one that depends on JUnit. In the module I'm developing--the one that depends only indirectly on JUnit, through my published module--how could I go about specifying that I want to use JUnit 3.8.2 as opposed to 4.6, or vice versa? It doesn't seem that dynamic revisions, in themselves, help me at this level. On Thu, Jun 25, 2009 at 11:45 PM, Maarten Coene wrote: > > Maybe you could add replacedynamicrev="false" to your ivy:publish task? > http://ant.apache.org/ivy/history/2.1.0-rc1/use/publish.html > > Maarten > > > > > ----- Original Message ---- > From: Garima Bathla > To: ivy-user@ant.apache.org > Sent: Friday, June 26, 2009 5:21:51 AM > Subject: Ivy confs masquerading as dependencies' revisions > > Let's say I have an Ivy module that depends on JUnit. But when I go to > publish version 1.0 of my module, I don't want to commit to a particular > version of JUnit. I want to leave open the option to depend on either JUnit > 3.8.2 or JUnit 4.6. > > The best way I've come up with to accomplish this is to create an Ivy conf > for each JUnit version, so I would have dependencies like so: > conf="junit-3.8.2->*" /> > /> > > It strikes me as a bit hacky to be having Ivy confs masquerading as the > revisions for a module's dependencies. I mean, the more revisions of that > dependency you want to support in a single module, the more Ivy confs > you're > going to need. But then, I also understand that, when you go to publish a > particular revision of an Ivy module, you're committing to not only that > revision of that module but also to the revisions of its dependencies. > > I'm just wondering if there's a less cumbersome way to be flexible about > the > dependencies for a *published *Ivy module. But it seems like, logically, > there *shouldn't* be. > > > > > --00163646c77a45cfce046d41ff05--