@Value not populating correctly for integration test using Eclipse

I have a src/main/resources/application.properties and a src/integration-test/application.properties. I am trying to autowire a property that is located in both files, but when running integration tests I would like the property from the test resources file to be loaded.

When running the integrationTest task using gradle, everything works. The /integration-test/application.properties gets picked up and the correct values are autowired into my spring controller. However when running with Eclipse as a junit task, the integration-test/application.properties does not get applied and instead the value gets populated from resources/application.properties.

build.gradle:

sourceSets {
main {
groovy {
srcDirs = [‘src/main/java’]
}
}

test {
    groovy {
        srcDirs = ['src/test/java']
    }
}
integrationTest {
    groovy {
        compileClasspath += main.output + test.output
        runtimeClasspath += main.output + test.output
        srcDirs file('src/integration-test/java')			
    }
    resources{
  	srcDir file('src/integration-test/resources')
  }
}

}

Spring Integration test harness:

import org.springframework.boot.test.SpringApplicationContextLoader
import org.springframework.boot.test.WebIntegrationTest
import org.springframework.test.context.ContextConfiguration
import spock.lang.Specification
import spock.lang.Stepwise

@ContextConfiguration(loader = SpringApplicationContextLoader.class, classes = [ServerRunner.class])
@WebIntegrationTest(randomPort = true)
@Stepwise
class SpringIntegrationTests extends Specification {
}