Gradle:无法生成依赖性洞察报告,因为未指定输入配置

时间:2018-02-14 11:30:55

标签: gradle

我试图在我的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

知道我可能缺少什么吗?

1 个答案:

答案 0 :(得分:3)

我没有指定我想要检查的模块: 该项目有一个子项目(module message-sender-server)。指定模块名称实际工作:

gradlew message-sender-server:dependencyInsight --dependency webmvc