Gradle Enhancement Task RuntimeException: class is frozen

Description

First create simple entities to be enhanced.

If we try to enhance it with hibernate-gradle-plugin version 5.2.1.Final with following configuration as suggested by official documentation.

We fail with an exception

However the problem cannot be reproduced using version 5.2.0.Final or 5.1.0.Final

The complete runnable project is attached.

Environment

gradle 2.14, hibernate (versions above). database irrelevant.

Attachments

Assignee

Luis Barreiro

Reporter

Jared Feng

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure