Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created March 8, 2013 04:54
Show Gist options
  • Save xconnecting/5114287 to your computer and use it in GitHub Desktop.
Save xconnecting/5114287 to your computer and use it in GitHub Desktop.
[Gradle]: Change sourceSets Directories
apply plugin: 'java'
apply plugin: 'eclipse'
sourceSets {
main {
java { srcDir 'src' }
resources { srcDir 'src' }
}
}
task listSrcDir <<{
sourceSets.main{
it.java.srcDirs.each { println it}
it.resources.srcDirs.each {println it }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment