In build.gradle, add this:
build.gradle
ext['hibernate.version'] = '6.6.1.Final'
In IntelliJ, Gradle panel, click on the Icon that says: Reload All Gradle Projects
Reload All Gradle Projects