summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.gradle29
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