GenerateDependencyGraph task generates png with single app block (for project with flavors)
See original GitHub issueI have a AS 3.0 / Kotlin 1.2.21 / gradle 4.1 project with multiple dependencies with classical root and app project modules structure. Full list of dependencies:
dependencies {
kapt "com.github.hotchemi:permissionsdispatcher-processor:3.1.0"
kapt "com.hannesdorfmann.fragmentargs:processor:$fragmentArgs_version"
kapt "com.github.bumptech.glide:compiler:$glide_version"
kapt "com.google.dagger:dagger-compiler:$dagger_version"
kapt "nz.bradcampbell:paperparcel-compiler:$paperparcel_version"
compileOnly 'org.glassfish:javax.annotation:10.0-b28'
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':sinch-android-rtc-3.12.3')
implementation('com.crashlytics.sdk.android:crashlytics:2.9.0@aar') {
transitive = true
}
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation "com.squareup.okhttp3:okhttp:$okHttp_version"
implementation "com.squareup.okhttp3:logging-interceptor:$okHttp_version"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
implementation "com.android.support:appcompat-v7:$support_version"
implementation "com.android.support:recyclerview-v7:$support_version"
implementation "com.android.support:customtabs:$support_version"
implementation "com.android.support:design:$support_version"
implementation "com.android.support:support-dynamic-animation:$support_version"
implementation "com.google.android.gms:play-services-maps:$playServices_version"
implementation "com.google.android.gms:play-services-location:$playServices_version"
implementation "com.google.android.gms:play-services-places:$playServices_version"
implementation "com.google.android.gms:play-services-gcm:$playServices_version"
implementation "com.google.firebase:firebase-core:$playServices_version"
implementation "com.google.firebase:firebase-messaging:$playServices_version"
implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
implementation 'io.reactivex.rxjava2:rxkotlin:2.1.0'
implementation "com.github.bumptech.glide:glide:$glide_version"
implementation 'com.jakewharton:kotterknife:0.1.0-SNAPSHOT'
implementation 'com.jakewharton.timber:timber:4.6.0'
implementation "com.google.dagger:dagger:$dagger_version"
implementation "org.igniterealtime.smack:smack-android-extensions:$smack_version"
implementation "org.igniterealtime.smack:smack-tcp:$smack_version"
implementation 'de.hdodenhof:circleimageview:2.1.0'
implementation "nz.bradcampbell:paperparcel:$paperparcel_version"
implementation "nz.bradcampbell:paperparcel-kotlin:$paperparcel_version"
implementation 'com.hannesdorfmann:adapterdelegates2:2.0.1'
implementation 'org.apmem.tools:layouts:1.10@aar'
implementation "com.hannesdorfmann.fragmentargs:annotation:$fragmentArgs_version"
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
implementation "com.daimajia.swipelayout:library:1.2.0@aar"
implementation 'com.facebook.rebound:rebound:0.3.8'
implementation 'com.makeramen:roundedimageview:2.3.0'
implementation 'com.github.chrisbanes:PhotoView:2.1.3'
implementation 'com.android.support:multidex:1.0.2'
implementation 'com.hannesdorfmann.mosby3:mvp:3.0.4'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.facebook.android:facebook-login:[4,5)'
implementation 'com.romandanylyk:pageindicatorview:0.2.0@aar'
implementation "com.github.hotchemi:permissionsdispatcher:3.1.0"
implementation 'cn.aigestudio.wheelpicker:WheelPicker:1.1.2'
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
testImplementation 'junit:junit:4.12'
testImplementation 'org.mockito:mockito-core:2.12.0'
testImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5'
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
}
After running of ./gradlew :app:generateDependencyGraph, plugin outputs this graph, which has only app element.
I’ve tried to use 0.1.0 and 0.2.0-SNAPSHOT, the described issue happens for both of them.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:21 (15 by maintainers)
Top Results From Across the Web
Custom Tasks - Gradle Recipes for Android [Book] - O'Reilly
The Gradle DSL supports a task block for defining your own custom tasks. The API includes a wide range of existing tasks (like...
Read more >Create dependency diagrams from your code - Visual Studio ...
Learn how you can create a dependency diagram in Visual Studio to visualize your software system's high-level, logical architecture.
Read more >Optimize your build speed | Android Developers
Learn about techniques to help you improve your Android project build speed. ... Use static dependency versions; Create library modules; Create tasks for ......
Read more >DAGs — Airflow Documentation
A DAG (Directed Acyclic Graph) is the core concept of Airflow, collecting Tasks ... There are two main ways to declare individual task...
Read more >How to define different dependencies for different product flavors
To define a flavor specific dependency you can use proCompile instead of compile in your dependency section. When you run gradle properties you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vanniktech it worked smoothly successful, really awesome tool!
I’ve just released 0.2.0 which should be available soon through mavenCentral.