Open es0329 opened 2 years ago
Hey thanks for reaching out. Unfortunately I have little to no idea on android development so I cannot really help in this case. But I can imagine the issue is because only the main
sourceset of java
plugin is considered (code link).
You can try to add android plugin sourceset here and see if it works. Since I am not actively updating/maintaining this plugin you can either fork this out and create a new plugin for android or create a PR here and I will try to review this as soon as I can. 👍🏼
Hi. I'm curious how I'd generate UML for a native Android codebase, written in Kotlin
1.5.31
and built with Gradle7.3.3
, or the level of effort to make it possible.Version
0.0.3
of the plugin is applied by the Kotlin plugins DSL and configured with the samplePlantUmlGeneratorTask
, only editing thescanPackages
line to assign my own value. Its execution is failing.That exception is thrown at
UmlGenerationConfig.getCompileClassLoader()
.However, Android does have a
main
sourceSet by default. The Android Gradle Plugin also offers asourceSets
task to log their information; below is that output for the:app
module of my project. While there are several sourceSets in an Android project,main
is confirmed among them.Does anything come to mind that I'm overlooking? I'm also happy to attempt a PR if you have some direction and I understand the change. Or feel free to close this issue if Android support is beyond scope/not of interest.
The plugin works nicely on my pure jvm (non-Android) projects. Thanks for your effort creating it and keep up the great work! 🥇