且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将由Gradle jar编译的文件安装到本地Gradle存储库文件-2.1中而不是Maven存储库中?

更新时间:2021-10-15 04:38:39

对我有用的是 gradle install -Dmaven.repo.local = the/path/of/the/folder .

我不知道您使用的是哪个IDE,但是在eclipse中您可以添加新的运行配置,在Gradle taks中添加 install 和程序参数 -Dmaven.repo.local =/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.