How does Buildship create the .classpath file for Eclipse?

Buildship appends the Gradle classpath container to the end of the classpath if it’s not defined in the eclipse plugin configuration. The following snippet fixes this behavior:

eclipse {
   classpath {
        containers 'org.eclipse.buildship.core.gradleclasspathcontainer'
   }
}