Hi all, this is my first post!
I want to run a custom version of the “build” task which uses my local Maven repository instead of Maven Central/my custom Nexus repository in IntelliJ, as I am developing both the project as well as an in-progress version of a library that uses it, and I would like to only use that version and ignore what is going on in Nexus/Maven Central.
Of course, I can just replace the repository{} section with mavenLocal() and just hope I don’t commit it down the line, but I was hoping there is a cleaner solution, like somehow I can “override” the repository{} section via a command line argument. This also requires me to clean out my caches. I’d rather not explicitly declare mavenLocal() and not have to clean out my caches either. Is this possible?
I’d also be happy if I can define a custom task which does a build with different repositories, but I can’t quite work that one out.