Possible to use shared code files between different projects?

Hi, I’m having a bunch of Eclipse projects, each is using code files of others using the linkedResource pattern. Is there something comparable with Gradle (under Android Studio), so that I can keep the folder structure?

You could customize your source sets and add the external source locations.

sourceSets {

main {

java {

srcDir ‘/path/to/additional/src’

}

}

}