UML with IntelliJ IDEA and PlantUML Plugin

UML with IntelliJ IDEA and PlantUML Plugin

Takahiro Iwasa
Takahiro Iwasa
1 min read
IntelliJ IDEA PlantUML

IntelliJ IDEA with PlantUML plugin can generate UML diagrams by DSL. Because PlantUML diagrams are made of text data, it becomes simple to manage differences with version control systems like Git.

Prerequisites

SoftwareVersion
IntelliJ IDEA2016.3.4
PlantUML Integration2.5.0
Graphviz2.3.8

Coding

After creating a *.puml file, you can begin coding on it and immediately view the rendered diagram.

Here is a short example. For PlantUML DSL, please visit the official website.

@startuml

interface Person
abstract Employee

interface Person {
    + string getName();
}

class Employee {
    - string name;
    --
    + string getName();
    + string getEmployeeId();
}

Person <|-- Employee

@enduml

Conclusion

PlantUML is easy to use and simple to manage because it is composed of text data. For small- and-mid-sized applications, it will be the suitable choice.

I hope you will find this post useful.

Takahiro Iwasa

Takahiro Iwasa

Software Developer at KAKEHASHI Inc.
Involved in the requirements definition, design, and development of cloud-native applications using AWS. Now, building a new prescription data collection platform at KAKEHASHI Inc. Japan AWS Top Engineers 2020-2023.