nixos/plantuml-server: switch to jetty 12

This commit is contained in:
Jakob Klepp
2026-06-16 09:59:36 +02:00
parent a454d196d5
commit 0476429bfc
2 changed files with 8 additions and 14 deletions
@@ -40,6 +40,8 @@
- The `services.syncthing` module now updates the Syncthing REST API using partial updates (`PATCH`) instead of full replacements (`PUT`) for general settings. Updating these settings was broken and prone to errors after updates, see [#428808](https://github.com/NixOS/nixpkgs/issues/428808) and [#528889](https://github.com/NixOS/nixpkgs/issues/528889). As a result, settings modified manually through the Syncthing Web UI that are not explicitly defined in your Nix configuration will now persist across rebuilds.
- `services.plantuml-server.packages.jetty` now supports `jetty_12`, it no longer supports `jetty_11`.
## Other Notable Changes {#sec-release-26.11-notable-changes}
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
@@ -37,15 +37,7 @@ in
packages = {
jdk = mkPackageOption pkgs "jdk" { };
jetty = mkPackageOption pkgs "jetty" {
default = [ "jetty_11" ];
extraDescription = ''
At the time of writing (v1.2023.12), PlantUML Server does not support
Jetty versions higher than 12.x.
Jetty 12.x has introduced major breaking changes, see
<https://github.com/jetty/jetty.project/releases/tag/jetty-12.0.0> and
<https://eclipse.dev/jetty/documentation/jetty-12/programming-guide/index.html#pg-migration-11-to-12>
'';
default = [ "jetty_12" ];
};
};
@@ -115,11 +107,11 @@ in
script = ''
${cfg.packages.jdk}/bin/java \
-jar ${cfg.packages.jetty}/start.jar \
--module=deploy,http,jsp \
jetty.home=${cfg.packages.jetty} \
jetty.base=${cfg.package} \
jetty.http.host=${cfg.listenHost} \
jetty.http.port=${toString cfg.listenPort}
--module=http,ee11-deploy,ee11-jsp \
-Djetty.home=${cfg.packages.jetty} \
-Djetty.base=${cfg.package} \
-Djetty.http.host=${cfg.listenHost} \
-Djetty.http.port=${toString cfg.listenPort}
'';
serviceConfig = {