Closed devconsole closed 2 months ago
I just saw that the duplicates have different dependencies, e.g. from the JSON report:
{"project":"Lifecycle Runtime","description":"Android Lifecycle Runtime","version":"2.8.2","developers":["The Android Open Source Project"],"url":"https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.2","year":"2017","licenses":[{"license":"The Apache Software License, Version 2.0","license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt"}],"dependency":"androidx.lifecycle:lifecycle-runtime-android:2.8.2"}
{"project":"Lifecycle Runtime","description":"Android Lifecycle Runtime","version":"2.8.2","developers":["The Android Open Source Project"],"url":"https://developer.android.com/jetpack/androidx/releases/lifecycle#2.8.2","year":"2017","licenses":[{"license":"The Apache Software License, Version 2.0","license_url":"http://www.apache.org/licenses/LICENSE-2.0.txt"}],"dependency":"androidx.lifecycle:lifecycle-runtime-desktop:2.8.2"}
False alert, these are different dependencies that happen to be named identically.
I have an Android project that is composed of an app module and several Android library and Java library modules.
Now when I generate the license report it contains a few duplicate entries. My guess is that's because several of the Android library modules have the same dependencies.
For example in the HTML report I see duplicates for "Lifecycle Runtime" and "Lifecycle ViewModel".
The app module declares: implementation "androidx.lifecycle:lifecycle-process:${versions.lifecycle}". One of the Android library modules has: implementation "androidx.lifecycle:lifecycle-common:${versions.lifecycle}".