I want to print all dependencies on project via DependencyReportTask , but one dependencies are still missed on report .
I was used task on Main project : “gradle allDeps” , gradle version 2.8
Project: MEI
apply plugin: 'java’
dependencies {
compile files(
"./MEI-java.jar",
)
compile “log4j:log4j:1.2.16”
}
Project: module1
apply plugin: ‘java’
dependencies {
compile project(’:MEI’)
}
Project: Main
subprojects {
plugins.withType(JavaPlugin).whenPluginAdded {
repositories {
mavenCentral()
}
task allDeps(type: DependencyReportTask) {}
}
}
I dont see dependencies on MEI-java.jar
OUTPUT :
Project :MEI
archives - Configuration for archive artifacts.
No dependencies
compile - Compile classpath for source set ‘main’.
— log4j:log4j:1.2.16
default - Configuration for default artifacts.
— log4j:log4j:1.2.16
distribution
No dependencies
runtime - Runtime classpath for source set ‘main’.
— log4j:log4j:1.2.16
testCompile - Compile classpath for source set ‘test’.
— log4j:log4j:1.2.16
testRuntime - Runtime classpath for source set ‘test’.
— log4j:log4j:1.2.16
:module1:allDeps
Project :module1
archives - Configuration for archive artifacts.
No dependencies
compile - Compile classpath for source set ‘main’.
— project :MEI
default - Configuration for default artifacts.
— project :MEI
— log4j:log4j:1.2.16
runtime - Runtime classpath for source set ‘main’.
— project :MEI
— log4j:log4j:1.2.16
testCompile - Compile classpath for source set ‘test’.
— project :MEI
— log4j:log4j:1.2.16
testRuntime - Runtime classpath for source set ‘test’.
— project :MEI
— log4j:log4j:1.2.16
BUILD SUCCESSFUL
Total time: 2.172 secs
Configuration seem good :
.
├── build
│ └── all-dependencies
│ ├── compile
│ │ ├── log4j-1.2.16.jar
│ │ ├── MEI.jar
│ │ └── MEI-java.jar
│ ├── default
│ │ ├── log4j-1.2.16.jar
│ │ ├── MEI.jar
│ │ └── MEI-java.jar
│ ├── runtime
│ │ ├── log4j-1.2.16.jar
│ │ ├── MEI.jar
│ │ └── MEI-java.jar
│ ├── testCompile
│ │ ├── log4j-1.2.16.jar
│ │ ├── MEI.jar
│ │ └── MEI-java.jar
│ └── testRuntime
│ ├── log4j-1.2.16.jar
│ ├── MEI.jar
│ └── MEI-java.jar