1 apply plugin: 'java' 2 3 sourceSets { 4 main { 5 java { 6 srcDirs = ['src/'] 7 } 8 resources { 9 srcDirs = ['res/'] 10 } 11 } 12 } 13 // TODO put this function in a plugin 14 String findToolsJar() { 15 new ByteArrayOutputStream().withStream { os -> 16 project.exec { 17 executable "$rootDir/build/core/find-jdk-tools-jar.sh" 18 19 standardOutput = os 20 } 21 return os.toString().trim() 22 } 23 } 24 25 dependencies { 26 compile files(findToolsJar()) 27 compile project(path: ':external:antlr', configuration: 'antlrRuntime') 28 compile project(':external:jsilver') 29 }