diff options
author | Adam Metcalf <gamblore@google.com> | 2013-07-19 11:42:47 -0700 |
---|---|---|
committer | Adam Metcalf <gamblore@google.com> | 2013-07-30 09:34:54 -0700 |
commit | ca26d47d656052ca1012b42f24e5ab13f9349006 (patch) | |
tree | 15933e48bd0eb1b1933796e744f4bd637c567c26 | |
parent | 864c6b3a9873601593ad12a656de938ac37c7240 (diff) | |
download | platform_external_doclava-ca26d47d656052ca1012b42f24e5ab13f9349006.tar.gz platform_external_doclava-ca26d47d656052ca1012b42f24e5ab13f9349006.tar.bz2 platform_external_doclava-ca26d47d656052ca1012b42f24e5ab13f9349006.zip |
Add Gradle build file to make Doclava.
Change-Id: I6148ca5b215ab6dd8d4e9a5cef8e63d29668d232
-rw-r--r-- | build.gradle | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..568426f --- /dev/null +++ b/build.gradle @@ -0,0 +1,29 @@ +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') +}
\ No newline at end of file |