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

前端 未结 4 2176
失恋的感觉
失恋的感觉 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 04:55

    What worked for me is gradle install -Dmaven.repo.local=the/path/of/the/folder.

    I don't know which IDE you are using but in eclipse you can add a new Run Configuration, in Gradle taks add install and in program arguments -Dmaven.repo.local=the/path/of/the/folder.

提交回复
热议问题