Skip to content

Cannot compile anymore when importing LayoutDialect because Groovy is missing #208

@sguillope

Description

@sguillope

Hello, when upgrading from 2.4.1 to 2.5.0, we are getting a compiler failure:

Kotlin: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class nz.net.ultraq.thymeleaf.LayoutDialect, unresolved supertypes: groovy.lang.GroovyObject

We use Maven and when upgrading, the transitive dependency on org.codehaus.groovy:groovy changed from compile to runtime. We instantiate LayoutDialect in our code and so it requires Groovy to be in the compile scope.

I suspect the issue stems from the change in 6a616a4 which effectively changes the way transitive dependencies are exposed.

For now our workaround is to include org.codehaus.groovy:groovy as a direct compile dependency of our project.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions