Generating UML diagram from Scala sources
12,921
Solution 1
try Acceleo see an example of using it with scala here
Solution 2
I had exactly this problem and couldn't find anything that would quickly draw a hierarchy from some Scala source code so I ended up creating something to do it. I've put it on GitHub in case it's useful to anyone else:
https://github.com/mikeyhu/scaladiagrams
Related videos on Youtube
Author by
Andrey Kuznetsov
Updated on June 07, 2022Comments
-
Andrey Kuznetsov almost 2 years
Is there any stand-alone tools (not Eclipse or Idea plugins) for generating class diagram from Scala source files?
-
Andrey Kuznetsov over 12 yearsIt is an eclipse plugin but I am searching for stand-alone tool (I want to write an sbt plugin).
-
opyate over 12 yearsTalk to the maintainers of Acceleo and see if you can re-use Acceleo core (the bit with the Eclipse glue stripped off) with sbt. No need re-inventing the wheel :)
-
falconepl about 10 yearsIs Acceleo actually capable of generating a diagram from Scala source code? As far as I know, and as it is demonstrated in the example above, it can output a source code based on a given model, but not the other way round (that was the point of the question).
-
Darko over 4 yearsIt fails to compile because of unresolved dependencies: com.typesafe.sbteclipse#sbteclipse-plugin;4.0.0: not found, com.github.mpeltonen#sbt-idea;1.6.0: not found, com.eed3si9n#sbt-assembly;0.14.0: not found
-
leas over 2 yearsFor people still looking, found this project that creates proper UML diagrams for Scala projects : github.com/tizuck/scala-uml