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

Share:
12,921

Related videos on Youtube

Andrey Kuznetsov
Author by

Andrey Kuznetsov

Updated on June 07, 2022

Comments

  • Andrey Kuznetsov
    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
    Andrey Kuznetsov over 12 years
    It is an eclipse plugin but I am searching for stand-alone tool (I want to write an sbt plugin).
  • opyate
    opyate over 12 years
    Talk 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
    falconepl about 10 years
    Is 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
    Darko over 4 years
    It 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
    leas over 2 years
    For people still looking, found this project that creates proper UML diagrams for Scala projects : github.com/tizuck/scala-uml