eclipse / buildship

The Eclipse Plug-ins for Gradle project.
533 stars 170 forks source link

Failure to link compileOnly dependencies between eclipse projects #1071

Open tonowie opened 3 years ago

tonowie commented 3 years ago

When I import composite build which includes projects which are inter-dependent on each other I get those projects correctly linked in eclipse when dependency on artifact is declared as implementation. Dependencies declared in compileOnly configuration are missing (no link to project and no link to actual artifact from repository)

To rephrase, this from the plugin description does not work for compileOnly dependencies

All included builds are synchronized together.
Binary dependencies between included builds are replaced with Eclipse project dependencies. Also, the included build dependency substitution rules declared in the settings.gradle file are respected.

compo.zip demonstrates our layout and problem.

proj1 declares dependencies as follows

dependencies {
  implementation 'demo.bug:proj2:1.2.3'
  compileOnly 'demo.bug:proj3:1.2.3'
}

The link is correctly made to proj2 but proj3 is completely missing (no link, no jar) proj3missing

Environment

thc202 commented 3 years ago

Seems to be a duplicate of #939. We are also affected by this (or that) issue.

thc202 commented 3 years ago

The workaround mentioned in the other issue works.