When I do a ./gradlew publishToMavenLocal
it publishes to my default maven home directory of: ~/.m2
.
I would instead like to publish to a custom maven repository path.
To do with with mvn
command line, you can specify the command line -Dmaven.repo.local=$HOME/.my/other/repository
(See: https://stackoverflow.com/a/7071791/1174024)
But what about when publishing with Gradle? Is there a way to publish to a custom path by using an environment variable, or something similar?