Gradle eclipse linked resource and add <classpathentry kind="src" path="">

apply plugin: ‘eclipse’

eclipse {
project {
linkedResource name: ‘src_common’, type: ‘2’, location: ‘ms_common/src_common’
}

classpath {
	file {
		 withXml {
            def node = it.asNode()
            node.appendNode('classpathentry', [kind: 'src', path: 'src_common'])
        }
	
	}

}

}

No src_common classpathentry is generated, How to add ‘classpathentry’, [kind:‘src’, path:‘src_common’] to the classpath xml file?