Skip to content

Commit

Permalink
Merge pull request #1 from cloudflightio/KL/workspace-export
Browse files Browse the repository at this point in the history
use generic export method
  • Loading branch information
klu2 authored Jul 5, 2022
2 parents efdfbe9 + 4003e9a commit d6c6e71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {

description = "Spring Boot AutoConfigure Support for the Structurizr Client"
group = "io.cloudflight.structurizr"
version = "1.0.0"
version = "1.0.1"

autoConfigure {
java {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package io.cloudflight.architecture.structurizr.service.export

import com.structurizr.Workspace
import com.structurizr.export.Diagram
import com.structurizr.view.*
import com.structurizr.view.ThemeUtils
import io.cloudflight.architecture.structurizr.WorkspaceExportService
import io.cloudflight.architecture.structurizr.autoconfigure.StructurizrProperties
import io.cloudflight.structurizr.plantuml.ExtendedC4PlantUmlExporter
Expand All @@ -21,14 +21,8 @@ internal class C4PlantUmlExportService(private val properties: StructurizrProper
ThemeUtils.loadThemes(workspace)

if (properties.export.c4PlantUml.enabled) {
workspace.views.views.forEach {
when (it) {
is ContainerView -> storeDiagram(c4exporter.export(it))
is DeploymentView -> storeDiagram(c4exporter.export(it))
is SystemContextView -> storeDiagram(c4exporter.export(it))
is ComponentView -> storeDiagram(c4exporter.export(it))
is SystemLandscapeView -> storeDiagram(c4exporter.export(it))
}
c4exporter.export(workspace).forEach {
storeDiagram(it)
}
}
}
Expand Down

0 comments on commit d6c6e71

Please sign in to comment.