Eclipse run configuration doesn't see all classpath dependencies

Dear team,

Please take a look at the following code snippet from build.gradle:

configurations {
    a { extendsFrom implementation }

dependencies {
    implementation project(":foo"), etc

    a anotherDep

    testCompileOnly "org.springframework:spring-aop:$springVersion"

Both “a” and “testCompileOnly” dependencies are seen in Package Explorer and Eclipse compiler works OK. But non of them is seen in corresponding Run Configuration if I try to run the project. What I did wrong?

Thanks in advance,

You have to add the custom configuration to the Eclipse classpath:

eclipse {
  classpath {
    plusConfigurations += [configurations.a]