# compileOnly and eclipse workaround

**URL:** <https://discuss.gradle.org/t/compileonly-and-eclipse-workaround/44773>\
**Category:** Buildship\
**Tags:** buildship, eclipse\
**Created:** [February 1, 2023, 8:44pm UTC](https://discuss.gradle.org/t/compileonly-and-eclipse-workaround/44773 "2023-02-01T20:44:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moley](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@moley](https://discuss.gradle.org/u/moley)\
**Post date:** [February 1, 2023, 8:44pm UTC](https://discuss.gradle.org/t/compileonly-and-eclipse-workaround/44773/1 "2023-02-01T20:44:14Z")

</div>

Hello anyone,

I am using Buildship with gradle 7.x and have compileOnly dependencies in my build. I found this workarounds noted in [compileOnly project dependency broken · Issue #939 · eclipse/buildship · GitHub](https://github.com/eclipse/buildship/issues/939) and [how to add compileOnly module dependencies in to eclipse build path libary · Issue #1120 · eclipse/buildship · GitHub](https://github.com/eclipse/buildship/issues/1120).  
I tried this latest fix and it seems to me it results in “Unresolved dependencies” when using compileOnly together with version catalogues because the version is not resolved. Is this a known bug? Can you please help me out to solve this issue?

Thanks in advance
