Skip to content

Commit

Permalink
feat: add plantuml (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtomasi authored May 6, 2024
1 parent 995d9a9 commit f6e4a8e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions plantuml.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
description = "Generate diagrams from textual description"
source = "https://github.com/plantuml/plantuml/releases/download/v${version}/plantuml-${version}.jar"
runtime-dependencies = ["openjre-17.0.4.1_1"]
binaries = ["plantuml"]
dont-extract = true
test = "plantuml -testdoc"

on "unpack" {
rename {
from = "${root}/plantuml-${version}.jar"
to = "${root}/plantuml.jar"
}

copy {
from = "plantuml/plantuml.sh"
to = "${root}/plantuml"
mode = 448
}
}

version "1.2024.2" "1.2024.3" "1.2024.4" {
auto-version {
github-release = "plantuml/plantuml"
version-pattern = "v(.*)"
}
}

sha256sums = {
"https://github.com/plantuml/plantuml/releases/download/v1.2024.4/plantuml-1.2024.4.jar": "8575b3e224d9488c6a0bb6ba78ba64e76457dc9777c496e3fa9d8c67108369b7",
"https://github.com/plantuml/plantuml/releases/download/v1.2024.2/plantuml-1.2024.2.jar": "629fbef4b52c174d37619a641287279afc960af68f63e4c59175147810f360a5",
"https://github.com/plantuml/plantuml/releases/download/v1.2024.3/plantuml-1.2024.3.jar": "519a4a7284c6a0357c369e4bb0caf72c4bfbbde851b8c6d6bbdb7af3c01fc82f",
}
4 changes: 4 additions & 0 deletions plantuml/plantuml.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

PLANTUML_DIR="$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")"
exec java --add-opens java.base/java.lang=ALL-UNNAMED -Xmx512m -jar "${PLANTUML_DIR}/plantuml.jar" "$@"

0 comments on commit f6e4a8e

Please sign in to comment.