projects
-ProjA
-src/main/java/com/company/One.java
-ProjB
-src/main/java/com/company2/Three.java
-src/main/groovy/com/company2/Two.groovy
ProjB/build.gradle
apply plugin: 'groovy'
apply plugin: 'eclipse-wtp'
dependencies {
compile project(':projects:ProjA')
compile 'org.codehaus.groovy:groovy-all:2.1.9'
ProjB/Two.groovy
One object=new One();
In eclipse,if I run ProjB (Run -> Run On Server ->tomcat), I get
ClassNotFoundException: com.company.One
Two.groovy is able to use Three.java, but not One.java
Update:Just found out that it has nothing to do with groovy Even Three.java is not able to access One.java(different project) Eclipse code completion is working,but doesn't work when 'Run on server' ProjA just have some come pojo's