apply plugin: 'java'
sourceSets {
main {
java {
srcDirs = ['src/']
}
resources {
srcDirs = ['res/']
}
}
}
// TODO put this function in a plugin
String findToolsJar() {
new ByteArrayOutputStream().withStream { os ->
project.exec {
executable "$rootDir/build/core/find-jdk-tools-jar.sh"
standardOutput = os
}
return os.toString().trim()
}
}
dependencies {
compile files(findToolsJar())
compile project(path: ':external:antlr', configuration: 'antlrRuntime')
compile project(':external:jsilver')
}