How to install a compiled by Gradle jar into the local Gradle Repository files-2.1 instead of the Maven repository?

前端 未结 4 2226
失恋的感觉
失恋的感觉 2021-02-13 04:17

In my build.gradle, I added the plugin:

apply plugin: \'maven\'

Then using “gradle install” I can copy the resulted jar into the maven reposito

4条回答
  •  情深已故
    2021-02-13 05:00

    mavenLocal() is resolved like this:

    In order to make use of a non-standard local maven repository, you can use the following configuration in your build.gradle:

    repositories { maven { url '/Users/manuelj/apache/maven/repository' } }

提交回复
热议问题