ultraq / thymeleaf-layout-dialect

A dialect for Thymeleaf that lets you build layouts and reusable templates in order to improve code reuse
https://ultraq.github.io/thymeleaf-layout-dialect/
Apache License 2.0
701 stars 112 forks source link

Use new Gradle dependency configurations while generating the correct Maven pom #209

Closed ultraq closed 3 years ago

ultraq commented 3 years ago

In #208, I learned that using Gradle's implementation dependency configuration, meant as the replacement for compile (which is now deprecated), generates the wrong kind of POM file needed for Maven, preventing a project that depends on the layout dialect to fail to compile.

Compare:

There must be a way to be able to use the new configuration while generating the right kind of POM. In my brief look at the subject while fixing #208, the api configuration from the java-library plugin might be the way to go? See:

ultraq commented 3 years ago

Yup, that seems to do it. Fixed in https://github.com/ultraq/thymeleaf-layout-dialect/commit/6b51020050f9aa1e488c48547fe8556513737eff