compileOnly and eclipse workaround

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 and how to add compileOnly module dependencies in to eclipse build path libary · Issue #1120 · eclipse/buildship · GitHub.
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