I’m not sure how to get started with Gradle and use an Ivy repository. I’m starting from scratch and haven’t used either one before. Do I need to install Ivy by itself first? I want to start populating a new repository. Should I use Gradle to do that or build it in Ivy first? Any advice or recommendations when starting from scratch?
(The docs seem to assume you know Ivy already and want to hook into an existing repository)
I’d mainly like to publish Gradle-generated artifacts to an Ivy repository (if that is the best option). I have some 3rd party libs I could put in there too, but I’m willing to do that manually and not pull them off the Internet.
All you need to set up a shared Ivy repository is a server with a file system that can be accessed from client machines (e.g. via HTTP and/or SSH). But I’d recommend to use a repository manager like Artifactory. It’s easier to get started and a good choice anyway.
I wouldn’t say that an Ivy repository is a better option than a Maven repository. It’s a more powerful option, but the power comes at a price. And typically, most of your third-party dependencies will come from Maven repositories anyway. Again you can’t go wrong with Artifactory, which can act both as an Ivy and a Maven repository.