I have several java based projects in eclipse and build them via gradle. I want to import classes from project B and C into classes of project A. But I always get the error "The import bc.project.xyz cannot be resolved" That happens also when I import the javax.entity.EntityManager.
I imported all dependencies as written in other blogs like:
But all these suggestions dont work.
Some further details about the system environment:
- java version 1.8.0_72 SE Runtime Environment (build 1.8.0.72-b15)
- gradle version 5.1.1
- Eclipse IDE 4.12
- Windows 10
The projects are all in the same folder
build.gradle
dependencies {
compile project(":project b")
testCompile project(path: ':project b', configuration: 'tests')
compile project(":project c")
testCompile project(path: ':project c', configuration: 'tests')
compile group: 'javax.persistence', name: 'persistence-api', version: '1.0'
compile "javax.servlet:javax.servlet-api:3.1.0"
}