From 7bc3612da7ade47578e1aa6767c8499388df0561 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Sun, 13 Aug 2023 09:22:36 +0200 Subject: [PATCH] Attempt to fix yuzutech/kroki#1606 --- .github/workflows/native-image-on-demand.yml | 1 + .github/workflows/native-image.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/native-image-on-demand.yml b/.github/workflows/native-image-on-demand.yml index b8b53f48a89..00b059b581f 100644 --- a/.github/workflows/native-image-on-demand.yml +++ b/.github/workflows/native-image-on-demand.yml @@ -103,6 +103,7 @@ jobs: echo 'error' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tsvg -pipe || true printf '!include \n\ntitle System Context diagram for Internet Banking System\n\nPerson(customer, "Banking Customer", "A customer of the bank, with personal bank accounts.")\n\nSystem(banking_system, "Internet Banking System", "Allows customers to check their accounts.")\n\nSystem_Ext(mail_system, "E-mail system", "The internal Microsoft Exchange e-mail system.")\nSystem_Ext(mainframe, "Mainframe Banking System", "Stores all of the core banking information.")\n\nRel(customer, banking_system, "Uses")\nRel_Back(customer, mail_system, "Sends e-mails to")\nRel_Neighbor(banking_system, mail_system, "Sends e-mails", "SMTP")\nRel(banking_system, mainframe, "Uses")' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tpdf -pipe printf '!include \n\ntitle Archimate Sample - Internet Browser\n\nBusiness_Object(businessObject, \"A Business Object\")' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tsvg -pipe + printf '!include \n!include \n\nAWSCloudGroup(cloud) {\n}' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tsvg -pipe printf 'set separator none\n\nleft to right direction\n\nskinparam {\n arrowFontSize 10\n defaultTextAlignment center\n wrapWidth 200\n maxMessageSize 100\n}\n\nhide stereotype\n\nskinparam rectangle<> {\n BackgroundColor #ffffff\n FontColor #232f3e\n BorderColor #232f3e\n roundCorner 20\n shadowing false\n}\n\nrectangle "Amazon Web Services\\n[Deployment Node]\\n\\n" <> as Live.AmazonWebServices {\n}' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tsvg -pipe env: RELEASE_VERSION: ${{ needs.build_artifacts.outputs.release_version }} diff --git a/.github/workflows/native-image.yml b/.github/workflows/native-image.yml index 4b3625fe01c..2b7118a5bf8 100644 --- a/.github/workflows/native-image.yml +++ b/.github/workflows/native-image.yml @@ -73,6 +73,7 @@ jobs: echo 'error' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-${{ inputs.release-version }}.jar" -tsvg -pipe > out.svg || true printf '!include \n\ntitle System Context diagram for Internet Banking System\n\nPerson(customer, "Banking Customer", "A customer of the bank, with personal bank accounts.")\n\nSystem(banking_system, "Internet Banking System", "Allows customers to check their accounts.")\n\nSystem_Ext(mail_system, "E-mail system", "The internal Microsoft Exchange e-mail system.")\nSystem_Ext(mainframe, "Mainframe Banking System", "Stores all of the core banking information.")\n\nRel(customer, banking_system, "Uses")\nRel_Back(customer, mail_system, "Sends e-mails to")\nRel_Neighbor(banking_system, mail_system, "Sends e-mails", "SMTP")\nRel(banking_system, mainframe, "Uses")' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-${{ inputs.release-version }}.jar" -tpdf -pipe printf '!include \n\ntitle Archimate Sample - Internet Browser\n\nBusiness_Object(businessObject, \"A Business Object\")' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-${{ inputs.release-version }}.jar" -tsvg -pipe + printf '!include \n!include \n\nAWSCloudGroup(cloud) {\n}' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-$RELEASE_VERSION.jar" -tsvg -pipe printf 'set separator none\n\nleft to right direction\n\nskinparam {\n arrowFontSize 10\n defaultTextAlignment center\n wrapWidth 200\n maxMessageSize 100\n}\n\nhide stereotype\n\nskinparam rectangle<> {\n BackgroundColor #ffffff\n FontColor #232f3e\n BorderColor #232f3e\n roundCorner 20\n shadowing false\n}\n\nrectangle "Amazon Web Services\\n[Deployment Node]\\n\\n" <> as Live.AmazonWebServices {\n}' | java -Djava.awt.headless=true -agentlib:native-image-agent=config-merge-dir=native-image-config-dir -jar "./build/libs/plantuml-pdf-${{ inputs.release-version }}.jar" -tsvg -pipe - name: Generate native image