Create a Private Remote Ivy Repository

可紊 提交于 2019-12-21 20:26:52

问题


I've been doing quite a bit of searching and am unable to put all the pieces together. I want to create an ivy repository on one of our servers. I want to lock it down so it is private, and then be able to publish to this repository from Gradle.

I know how to publish using Gradle, and I have that working with a local ivy file system that Gradle creates:

repositories {
  mavenCentral()
  ivy {
    name "localRepos"
    url "${System.properties['user.home']}/repos"
  }
}

uploadArchives {
  repositories {
    add project.repositories.localRepos
  }
}

So what I need to do now is translate that into publishing to a remote private repos. But first, obviously, I need to create that repos and I can't seem to figure that out from the Ivy documentation or Google searching. Can someone point me in the right direction?

I'd prefer not to have to go down the Nexus, etc approach (no Maven).


回答1:


An Ivy repository is just a file store, and hence you need to set up a server (e.g. Apache httpd) that allows to read and write those files (e.g. via HTTP GET/PUT). However, I strongly recommend to use a repository manager. Artifactory is a good choice.



来源:https://stackoverflow.com/questions/14447475/create-a-private-remote-ivy-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!