gradle -q dependencies
gradle -q dependencies --configuration testRuntimeClasspath
viewing_debugging_dependencies
gradle -q projects | grep -Fe '--- Project' | cut -d\' -f2 | xargs -I '{}' gradle -q '{}:dependencies' --configuration default
gradle version 3.5.1
settings.gradle
rootProject.name ='xxxx'
def source_dir_with_subprojects = 'path with the subprojects'
include 'sub_poject_name'
project(':sub_project_name').projectDir = file("$source_dir_with_subprojects");;
...
build.gradle
subprojects {
apply plugin: 'java'
}
//shadowJar excute before build
project(':sub_project_name') {
tasks.build.dependsOn ':sub_project_name:shadowJar'
}
project(':sub_project_name') {
dependencies {
compile project(':another_sub_project_name')
}
}