Plantuml builder

Plantuml diagram generation from java code sources

License

License

Categories

Categories

Ant Build Tools UML Business Logic Libraries Documents Processing
GroupId

GroupId

ch.ifocusit
ArtifactId

ArtifactId

plantuml-builder
Last Version

Last Version

1.5
Release Date

Release Date

Type

Type

jar
Description

Description

Plantuml builder
Plantuml diagram generation from java code sources
Project URL

Project URL

https://github.com/jboz/plantuml-builder
Project Organization

Project Organization

Focus IT
Source Code Management

Source Code Management

https://github.com/jboz/plantuml-builder

Download plantuml-builder

How to add to project

<!-- https://jarcasting.com/artifacts/ch.ifocusit/plantuml-builder/ -->
<dependency>
    <groupId>ch.ifocusit</groupId>
    <artifactId>plantuml-builder</artifactId>
    <version>1.5</version>
</dependency>
// https://jarcasting.com/artifacts/ch.ifocusit/plantuml-builder/
implementation 'ch.ifocusit:plantuml-builder:1.5'
// https://jarcasting.com/artifacts/ch.ifocusit/plantuml-builder/
implementation ("ch.ifocusit:plantuml-builder:1.5")
'ch.ifocusit:plantuml-builder:jar:1.5'
<dependency org="ch.ifocusit" name="plantuml-builder" rev="1.5">
  <artifact name="plantuml-builder" type="jar" />
</dependency>
@Grapes(
@Grab(group='ch.ifocusit', module='plantuml-builder', version='1.5')
)
libraryDependencies += "ch.ifocusit" % "plantuml-builder" % "1.5"
[ch.ifocusit/plantuml-builder "1.5"]

Dependencies

compile (2)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.5
com.google.guava : guava jar 21.0

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
org.mockito : mockito-core jar 2.7.17
org.easytesting : fest-assert jar 1.4
commons-io : commons-io jar 2.5

Project Modules

There are no modules declared in this project.

Build Status Make a pull request License Maven Central

Plantuml builder

Tools to generate plantuml diagram from java sources.

This generated diagrams are an important part of the Living Documentation tool

class diagram

This code :

String diagram = new ClassDiagramBuilder()
        .addClasses(Vehicule.class, Car.class, Driver.class, Price.class, Wheel.class, Devise.class)
        .build();

Will get :

@startuml

interface Vehicule

class Car {
  brand : String
  model : String
  driver : Driver
  price : Price
  wheels : Collection<Wheel>
}

class Driver {
  name : String
  cars : List<Car>
}

class Price {
  amount : BigDecimal
  devise : Devise
}

class Wheel

enum Devise {
  CHF
  EUR
  USD
}

Vehicule <|-- Car
Car "*" <-> Driver : driver
Car --> Price : price
Car --> "*" Wheel : wheels
Price --> Devise : devise

@enduml
Asciidoctor Diagram classes diagram

For more uses cases, more options see ClassDiagramBuilderTest or PlantUmlBuilderTest classes

Versions

Version
1.5
1.4
1.3
1.2
1.1
1.0