am 8c33a22b: am aba01a72: Merge "Snip empty group nodes from samples_navtree_data so they don\'t show up in TOC." into jb-mr2-docs

* commit '8c33a22b7fa09f1bfcb4661caf52a16d1bd8b030':
  Snip empty group nodes from samples_navtree_data so they don't show up in TOC.
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