summaryrefslogtreecommitdiff
path: root/tests/examplefiles/test.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/test.gradle')
-rw-r--r--tests/examplefiles/test.gradle20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/examplefiles/test.gradle b/tests/examplefiles/test.gradle
new file mode 100644
index 00000000..0bc834c1
--- /dev/null
+++ b/tests/examplefiles/test.gradle
@@ -0,0 +1,20 @@
+apply plugin: 'java'
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testCompile 'junit:junit:4.12'
+}
+
+task sayHello << {
+ def x = SomeClass.worldString
+ println "Hello ${x}"
+}
+
+private class SomeClass {
+ public static String getWorldString() {
+ return "world"
+ }
+}