This is more of a question than a bug report. I want to use this in a Kotlin Multiplatform Mobile project. I want to generate two reports, one for the shared module and one for Android. The Android app can contain data based on merging the two reports, while the iOS app should ignore the Android report and instead merge the shared one with data derived from the iOS app's Swift Package dependencies.
One possibility is to generate the shared report in the shared module, and the Android report in the android module. But I have other tasks to further process the reports, so it would be easier if I could run everything in the shared module instead of splitting it across both modules. Is that possible? I can't see a way to generate more than one report in the licenseReport block. Can I call licenseReport twice in the same build.gradle.kts script, or would one invocation just overwrite the other one? If it does work, does it run both configurations in the same gradle task?
This is more of a question than a bug report. I want to use this in a Kotlin Multiplatform Mobile project. I want to generate two reports, one for the shared module and one for Android. The Android app can contain data based on merging the two reports, while the iOS app should ignore the Android report and instead merge the shared one with data derived from the iOS app's Swift Package dependencies.
One possibility is to generate the shared report in the shared module, and the Android report in the android module. But I have other tasks to further process the reports, so it would be easier if I could run everything in the shared module instead of splitting it across both modules. Is that possible? I can't see a way to generate more than one report in the
licenseReport
block. Can I calllicenseReport
twice in the samebuild.gradle.kts
script, or would one invocation just overwrite the other one? If it does work, does it run both configurations in the same gradle task?