My project depends on a bunch of jar files that are not in a Maven repository. I can declare them as file dependencies, but I'd rather use Gradle's dependency manager, so I need to install them to local Maven repository.
I'm thinking about writing a task, say, "installFiles", and making "compileJava" depend on it, so it will be run first, and these dependencies will appear in local Maven repository before compilation. Then I'm going to declare them as normal external module dependencies, so that Gradle's dependency manager can handle them.
My question is, how do I install a bunch of jars to a local Maven repository? All documentation I've found just talks about installing the result of the current project, not some arbitrary jars.