Adam Metcalf | ca26d47 | 2013-07-19 11:42:47 -0700 | [diff] [blame] | 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()) |
Justin Morey | ebe83f6 | 2014-03-17 00:45:13 -0500 | [diff] [blame] | 27 | compile project(path: ':antlr', configuration: 'antlrRuntime') |
| 28 | compile project(':jsilver') |
Dirk Dougherty | c770a6e | 2014-02-07 20:04:27 -0800 | [diff] [blame] | 29 | compile project(':tagsoup') |
Adam Metcalf | ca26d47 | 2013-07-19 11:42:47 -0700 | [diff] [blame] | 30 | } |