KStateMachine / kstatemachine

KStateMachine is a Kotlin DSL library for creating state machines and statecharts.
https://kstatemachine.github.io/kstatemachine/
Boost Software License 1.0
339 stars 19 forks source link

Using gradle to generate the plantUml graph #47

Closed dave08 closed 1 year ago

dave08 commented 1 year ago

It would be nice to have a way to generate the graph from gradle w/o putting it in the app's code -- for example on Android to be able to retrieve a graph, I'd have to export it on the device, and then actually pull it from there. Whereas with gradle it could be be a git hook to generate the graph before each commit to a master branch -- or part of a CI pipeline with one of the result artifacts being such graphs.

nsk90 commented 1 year ago

I am not sure that using gradle for this feature is really easy and convenient.

dave08 commented 1 year ago

Ok, I thought of those ideas, but I just thought that it might be much more practical as a gradle task... well thanks anyways for the great library!

nsk90 commented 1 year ago

do you have experience in parsing source code? as I see you are suggesting to make gradle task that looks through the sources and makes uml output from them, without running it. right?