Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle: Dependency insight report cannot be generated because the input configuration was not specified

Tags:

gradle

I'm trying to resolve dependency conflict in my gradle applicaiton. My top-level build.gradle is:

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)
}

When I try to run gradle dependencyInsight --configuration compile, I get the following error:

* What went wrong:
Configuration with name 'compile' not found.

There is a whole bunch of lower level gradle files, but I guess that should just work using the top-level one, isn't it?

When i just try gradle dependencies, it returns pretty much nothing:

gradle dependencies
dockerBuild tag: dev.docker.orbitbenefits.capita/orbit/message-sender-rest:bOD-9656-ConfigServer-n0
:dependencies

------------------------------------------------------------
Root project
------------------------------------------------------------

No configurations

BUILD SUCCESSFUL

Any idea what I may be missing?

like image 223
Nestor Milyaev Avatar asked Feb 04 '23 01:02

Nestor Milyaev


1 Answers

I was not specifying the module I wanted to inspect: The project had a sub-project (module message-sender-server). Specifying the module name actually worked:

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

like image 173
Nestor Milyaev Avatar answered Feb 06 '23 15:02

Nestor Milyaev