Okay, I looked a little deeper. I can’t seem to find any official DSL or API (even incubating) for adding dependencies to published artifacts right now. Am I missing something? If this is the case, then I can as well create a component, because I’ll be working with changing APIs anyway. :(
Another question: I want to publish my projects to Ivy via IvyPublications, and I also want to refer to them via ProjectDependency's from other projects. In such a case it seems to me that I need to add my artifacts both to IvyPublication.artifact() and to the Project.getArtifacts() container. Am I reading this right? Thanks. -- Lóránt On Wednesday 23 July 2014 at 23:16, Daz DeBoer wrote: > The DSL for 'ivy-publish' _may_ change, as we switch it to use the new > configuration model. Certainly the semantics of when things are created and > configured will change. For the better. > > The current 'deferred configuration' model that the publishing plugins use > was a dead-end, and the new configuration model will address this in a much > more powerful and elegant way. This will make it much easier to configure the > tasks used in publishing, or to configure the project version prior to it > being used to configure the publication. (This is currently pretty painful). > > > > On Wed, Jul 23, 2014 at 3:06 PM, Lóránt Pintér <lorant.pin...@gmail.com > (mailto:lorant.pin...@gmail.com)> wrote: > > Hey Daz, > > > > Thanks. Is the DSL for “ivy-publish” about to change as well (it’s > > @Incubating, just like Binary!), or is it just the classes and interfaces > > like SoftwareComponent? > > > > -- > > Lóránt > > > > > > On Wednesday 23 July 2014 at 23:03, Daz DeBoer wrote: > > > > > Hey > > > Nope, this is not future-proof and is likely to change substantially in > > > the coming months. There's a lot of work going on in order to allow > > > custom component models, which will feed into both dependency resolution > > > and publishing. But for now, only use this if you're prepared to keep > > > updated with the changes. > > > Daz > > > > > > > > > > > > On Wed, Jul 23, 2014 at 2:58 PM, Lóránt Pintér <lorant.pin...@prezi.com > > > (mailto:lorant.pin...@prezi.com)> wrote: > > > > Hi, > > > > > > > > Is it future-proof to create my own SoftwareComponents to be published > > > > via “ivy-publishing”? Does anyone do this already except for the Java > > > > and War plugins? > > > > > > > > I’m asking this because SoftwareComponent is in an internal package, > > > > and I’ve had some bad experiences with non-stable APIs changing in > > > > Gradle 2.0 (I’m looking at you, Binary). :) > > > > > > > > Thanks. > > > > > > > > -- > > > > > > > > Lóránt Pintér > > > > > > > > > > > > Developer at Prezi (http://prezi.com) > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > Darrell (Daz) DeBoer > > > http://www.gradleware.com (http://www.gradleware.com/) > > > > > > -- > Darrell (Daz) DeBoer > http://www.gradleware.com (http://www.gradleware.com/)