ClassNotFoundException: org.hibernate.service.spi.BasicServiceInitiator

Coding in Idea 2019.3. Project using gradle 4.8.1. Dependencies are connected, as in the screenshot.

%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202019-11-29%2012-03-38

Hibernate 4.3.11.Final.

When starting a project, I get this final exception:

Caused by: java.lang.ClassNotFoundException: org.hibernate.service.spi.BasicServiceInitiator
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 76 more

I would be grateful for ideas on how to solve this problem.

The solution is that the Hibernate library must have the correct Spring library. For example, for the Hibernate version 5.4.9.Final, the Spring-core version 5.1.6.Final is suitable.