我试图在我的gradle应用程序中解决依赖冲突。我的顶级build.gradle是:
archivesBaseName = 'message-sender-rest'
apply plugin: 'paas-publish'
dependencies {
compile(project(':message-sender-api'))
compile(libraries.springBoot)
compile(libraries.loggingRuntime)
compile(libraries.integration)
compile(libraries.serviceFrameworkServer)
compile(libraries.serviceFrameworkApp)
compile(libraries.serviceFrameworkSpringIntegration)
testCompile(libraries.testing)
testCompile(libraries.springTest)
testCompile(libraries.activeMqBroker)
}
当我尝试运行gradle dependencyInsight --configuration compile
时,出现以下错误:
* What went wrong:
Configuration with name 'compile' not found.
有一大堆较低级别的gradle文件,但我想这应该只使用顶级文件,不是吗?
当我尝试gradle dependencies
时,它几乎没有返回任何内容:
gradle dependencies
dockerBuild tag: dev.docker.orbitbenefits.capita/orbit/message-sender-rest:bOD-9656-ConfigServer-n0
:dependencies
------------------------------------------------------------
Root project
------------------------------------------------------------
No configurations
BUILD SUCCESSFUL
知道我可能缺少什么吗?
答案 0 :(得分:3)
我没有指定我想要检查的模块:
该项目有一个子项目(module message-sender-server
)。指定模块名称实际工作:
gradlew message-sender-server:dependencyInsight --dependency webmvc