Я пытаюсь выполнить основную задачу гибернации с помощью проекта Gradle.
Банки зависимостей загружаются Gradle и помещаются в библиотеку Project и External Dependencies.

Я не получаю никакой ошибки во время компиляции. Но когда я пытаюсь запустить или отладить основной класс в Eclipse, я получаю класс не найден NoClassDefFoundError.
Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/cfg/Configuration
Когда я проверил путь сборки, я увидел, что библиотека зависимостей сконфигурирована с необходимыми jar-файлами, но Eclipse по-прежнему ее не использует.

Но когда я добавляю jar вручную в путь сборки, я не получаю это исключение.

Файл Build.gradle
plugins {
// Apply the java-library plugin to add support for Java Library
id 'java-library'
}
apply plugin: "eclipse"
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:23.0'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
// https://mvnrepository.com/artifact/org.hibernate/hibernate-core
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.3.6.Final'
// https://mvnrepository.com/artifact/com.oracle.jdbc/ojdbc6
runtime group: 'com.oracle.jdbc', name: 'ojdbc6', version: '11.1.0.6.0'
// https://mvnrepository.com/artifact/com.oracle/ojdbc6
runtime group: 'com.oracle', name: 'ojdbc6', version: '11.2.0.4.0-atlassian-hosted'
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
mavenCentral()
}
Заранее спасибо !!!