summaryrefslogtreecommitdiffstats
path: root/build.gradle
blob: 79d856e6a20346c45b7a82a121f739afca2992b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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: ':antlr', configuration: 'antlrRuntime')
    compile project(':jsilver')
    compile project(':tagsoup')
}