build.gradle revision c217a3fc2cf95e62e6bff83dba1567d6c0e11e59
1apply plugin: 'java'
2
3sourceSets {
4    main {
5        java {
6            srcDirs = ['src/']
7        }
8        resources {
9            srcDirs = ['res/']
10        }
11    }
12}
13// TODO put this function in a plugin
14String 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
25dependencies {
26    compile files(findToolsJar())
27    compile project(path: ':antlr', configuration: 'antlrRuntime')
28    compile project(':jsilver')
29    compile project(':tagsoup')
30}