buildship icon indicating copy to clipboard operation
buildship copied to clipboard

Failure to link compileOnly dependencies between eclipse projects

Open tonowie opened this issue 5 years ago • 3 comments

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

  • Eclipse 2020-12 (4.18.0) running on AdoptOpenJDK 11.0.10.9-openj9
  • Gradle 6.8.3 using wrapper
  • Buildship 3.0 (latest)
  • java_home for build execution AdoptOpenJDK 8.0.282.8-hotspot

tonowie avatar Mar 19 '21 09:03 tonowie

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

thc202 avatar May 13 '21 14:05 thc202

The workaround mentioned in the other issue works.

thc202 avatar May 13 '21 15:05 thc202