如何将依赖项添加到gradle存储库?

时间:2015-04-26 23:24:38

标签: gradle build.gradle

我在当地制作了我的网络项目,效果很好。然后我将这些上传到未连接到Internet的服务器。因此,无法在服务器的存储库中找到某些依赖项。所以,我想手动添加依赖项。所以,我尝试找到每个相关的gradle存储库。但是,它还没有解决。

构建应用程序时收到的错误消息如下所示。

* What went wrong:
A problem occurred configuring root project 'redca-admin-deploy'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.moowork.gradle:gradle-node-plugin:0.9.
     Required by:
         com.sds.redca:redca-admin-deploy:1.0.1-SNAPSHOT
      > No cached version of com.moowork.gradle:gradle-node-plugin:0.9 available for offline mode.
      > No cached version of com.moowork.gradle:gradle-node-plugin:0.9 available for offline mode.
      > No cached version of com.moowork.gradle:gradle-node-plugin:0.9 available for offline mode.
      > No cached version of com.moowork.gradle:gradle-node-plugin:0.9 available for offline mode.
      > No cached version of com.moowork.gradle:gradle-node-plugin:0.9 available for offline mode.
   > Could not resolve be.filipblondeel.gradle:gradle-gulp-plugin:0.1.
     Required by:
         com.sds.redca:redca-admin-deploy:1.0.1-SNAPSHOT
      > No cached version of be.filipblondeel.gradle:gradle-gulp-plugin:0.1 available for offline mode.
      > No cached version of be.filipblondeel.gradle:gradle-gulp-plugin:0.1 available for offline mode.
      > No cached version of be.filipblondeel.gradle:gradle-gulp-plugin:0.1 available for offline mode.
      > No cached version of be.filipblondeel.gradle:gradle-gulp-plugin:0.1 available for offline mode.
      > No cached version of be.filipblondeel.gradle:gradle-gulp-plugin:0.1 available for offline mode.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

我的解决方案

我在存储库标记中添加了以下内容。

 flatDir {
    dirs 'gradleLib'
 }

我将jar添加到文件夹中,效果很好。

0 个答案:

没有答案