DocbookTool icon indicating copy to clipboard operation
DocbookTool copied to clipboard

Automate PlantUML JAR download

Open asgrim opened this issue 2 years ago • 4 comments

Since the JAR filenames do not appear to be deterministic, manual update of the bundled JAR is currently needed.

You can download the latest JAR from https://github.com/plantuml/plantuml/releases.

We should figure out a way of automating the download of the JAR.

asgrim avatar Mar 17 '22 08:03 asgrim

The public API has a sensible JSON object representing the latest release

curl https://api.github.com/repos/plantuml/plantuml/releases/latest | grep 'browser_download_url' | awk '{print $2}'

This and some regex may be enough? Or some jq cleverness

ciaranmcnulty avatar Mar 23 '22 15:03 ciaranmcnulty

Hmm, that gets us a little closer sure, but we'd need to find which of the assets is the right one we want (i.e. plantuml-1.2022.2.jar) which is also not deterministic :/

asgrim avatar Mar 23 '22 15:03 asgrim

https://launchpad.net/ubuntu/+source/plantuml maybe? :|

Ocramius avatar Mar 23 '22 15:03 Ocramius

https://launchpad.net/ubuntu/+source/plantuml maybe? :|

this one looks way outdated :/

asgrim avatar Mar 23 '22 15:03 asgrim