I am trying to maintain the same repository on my filesystem for maven and gradle. But I am running into some problems.
I have the following in my build.gradle
Yes, I read the source code and just confirmed There is no setting to change that.
Here is my solution:
install a local maven repository manager like Nexus.
config gradle using that repository.
There is no setting to change that. There is no gradle repository as such. Also, it seems like a bad idea to have gradle use the repository's folder as dependency cache because of the clutter.
If you are trying to publish artifacts built by gradle to said maven repository, you should probably take a look at the maven-publish plugin.
If you are trying to use artifacts from that repository in your build, the way to go would be to add mavenLocal()
to your repositories and then just use the compile
function in your dependencies.