saros-project / saros

Open Source IDE plugin for distributed collaborative software development
https://www.saros-project.org
GNU General Public License v2.0
158 stars 52 forks source link

Build fails caused by missing transitive dep #1138

Closed FKHals closed 1 year ago

FKHals commented 3 years ago

A transitive eclipse dependency was changed which causes the build to fail (see last JDK11 build action, but this also happens with Java 8 on my local machine).

The bundle org.eclipse.ui.ide requires the bundle org.eclipse.e4.core.di which in turn has the actual problematic requirement javax.annotation:javax.annotation-api:[1.3.5,2.0.0) which does not seem to exist in maven central. The newest available version of javax.annotation-api would be 1.3.2.

Edit: I just confirmed locally that a possible temporary workaround would be to use the previous version of org.eclipse.e4.core.di.

Edit: The reason seems to be that javax.annotation:javax.annotation-api is deprecated and has been replaced by jakarta.annotation-api which should have an identical API and also fits the version boundaries [1.3.5, 2.0.0) given by org.eclipse.e4.core.di. So it seems like the author may have overseen that also the package name should be changed but that is just an assumption.