Command_Gradle

  •   Add and exclude dependency

 compile(group: 'com.mangal.service-clients', name: 'login-service', version: '5.2.11') {
        exclude group: 'com.mangal.onboard', module: 'service-clients-core'
        exclude group: 'com.fasterxml.jackson.core'
    }

  • Dependency tree

Note: Go to app home path and run below cmd in terminal

Specific Gradle Dependency: ./gradlew dependencyInsight --dependency spring-web

All Dependecy: ./gradlew dependencies --configuration compileClasspath

  • Gradle build and run

./gradlew clean build

./gradlew run