daisuzz.log

Thymeleaf 3.1で主要プロジェクトのソースリポジトリが集約された

Thymeleafのバージョンを3.0系から3.1系に更新する際に、関連プロジェクトのリポジトリやライブラリが変更になったことでバージョンアップ時にハマったので、備忘録として残しておく。

ソースリポジトリの統合

Thymeleaf 3.1から以下プロジェクトのソース(テスト, サンプル含む)リポジトリhttps://github.com/thymeleaf/thymeleaf に集約された。[1]

プロジェクト 変更前
thymeleaf-spring5 https://github.com/thymeleaf/thymeleaf-spring
thymeleaf-spring6 https://github.com/thymeleaf/thymeleaf-spring/tree/3.1-master/thymeleaf-spring6
thymeleaf-extras-springsecurity5 https://github.com/thymeleaf/thymeleaf-extras-springsecurity/tree/3.1-master/thymeleaf-extras-springsecurity5
thymeleaf-extras-springsecurity6 https://github.com/thymeleaf/thymeleaf-extras-springsecurity/tree/3.1-master/thymeleaf-extras-springsecurity6
thymeleaf-testing https://github.com/thymeleaf/thymeleaf-testing/tree/3.1-master/thymeleaf-testing
thymeleaf-testing-spring5 https://github.com/thymeleaf/thymeleaf-testing/tree/3.1-master/thymeleaf-testing-spring5
thymeleaf-testing-spring6 https://github.com/thymeleaf/thymeleaf-testing/tree/3.1-master/thymeleaf-testing-spring6

ライブラリの変更

ソースリポジトリの統合に伴って、テスト関連ライブラリのGroupIdが変更されているため、以下を利用している場合はプロジェクトのdependenciesを更新して新しいライブラリを依存関係に含める必要がある。[2]

ライブラリ 変更前 変更後
thymeleaf-testing org.thymeleaf:thymeleaf-testing org.thymeleaf.testing:thymeleaf-testing
thymeleaf-testing-spring5 org.thymeleaf:thymeleaf-testing-spring5 org.thymeleaf.testing:thymeleaf-testing-spring5
thymeleaf-testing-spring6 org.thymeleaf:thymeleaf-testing-spring6 org.thymeleaf.testing:thymeleaf-testing-spring6

それぞれ 3.1.0.M2 までは変更前のライブラリ、3.1.0.M3以降は変更後のライブラリで提供されているという状態になっていて勘違いしやすいので注意。

参考資料

[1] https://www.thymeleaf.org/doc/articles/thymeleaf31whatsnew.html#for-developers-total-overhaul-of-the-project-source-repository-structure

[2] https://www.thymeleaf.org/download.html