Gradle:外部依赖存储在哪里? [英] Gradle: Where are external dependencies stored?

查看:89
本文介绍了Gradle:外部依赖存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 依赖关系{
compile'org.slf4j :slf4j-api:1.7.13'
compile'org.mongodb:mongodb-driver:3.2.2'
testCompile'org.testng:testng:6.8.1'
testCompile'junit :junit:3.8.2'
}

我想下载MongoDB的驱动程序。我输入:


gradle build

几秒钟后,我收到一条消息,表示构建已经成功。现在,我正在寻找MongoDB驱动程序的jar文件/目录,但我找不到它。它应该在哪里?

解决方案

 〜/ .gradle / caches / modules-2 / files-2.1 / org .mongodb / mongodb-driver / 3.2.2 /< JAR的校验和> /mongodb-driver-3.2.2.jar 


I'm using Gradle and I gave the following dependencies:

dependencies {
    compile 'org.slf4j:slf4j-api:1.7.13'
    compile 'org.mongodb:mongodb-driver:3.2.2'
    testCompile 'org.testng:testng:6.8.1'
    testCompile 'junit:junit:3.8.2'
}

I want to download the driver of MongoDB. I typed:

gradle build

and after a few seconds I got a message saying the the build had succeeded. Now, I'm looking for the jar file/directory of MongoDB driver, and I don't find it. Where is it supposed to be?

解决方案

~/.gradle/caches/modules-2/files-2.1/org.mongodb/mongodb-driver/3.2.2/<checksum of the JAR>/mongodb-driver-3.2.2.jar

这篇关于Gradle:外部依赖存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆