From bc04a668c30ed03131c32a5dd026b19ab23e7dc9 Mon Sep 17 00:00:00 2001 From: David Arthur Date: Fri, 6 Dec 2013 21:23:51 -0500 Subject: [PATCH] Adding basic Gradle build After installing Gradle (brew install gradle on OS X), run gradle build and it will compile and test the project (just core for now). Output going to "build" directory. --- build.gradle | 36 ++++++++++++++++++++++++++++++++++++ gradle.properties | 1 + 2 files changed, 37 insertions(+), 0 deletions(-) create mode 100644 build.gradle create mode 100644 gradle.properties diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..b4eceaa --- /dev/null +++ b/build.gradle @@ -0,0 +1,36 @@ +apply plugin: 'scala' + +repositories { + mavenCentral() +} + +dependencies { + scalaTools 'org.scala-lang:scala-compiler:2.9.2' + scalaTools 'org.scala-lang:scala-library:2.9.2' + compile 'org.scala-lang:scala-library:2.9.2' + compile 'com.101tec:zkclient:0.3' + compile 'com.yammer.metrics:metrics-core:2.2.0' + compile 'com.yammer.metrics:metrics-annotation:2.2.0' + compile 'net.sf.jopt-simple:jopt-simple:3.2' + compile 'org.xerial.snappy:snappy-java:1.0.4.1' + testCompile 'junit:junit:4.1' + testCompile 'org.easymock:easymock:3.0' + testCompile 'org.objenesis:objenesis:1.2' + testCompile 'org.scalatest:scalatest:1.2' +} + +sourceSets { + main { + scala { + srcDirs = ['core/src/main/scala'] + exclude 'kafka/utils/Annotations_2.9+.scala' + } + } + test { + scala { + srcDirs = ['core/src/test/scala'] + } + } +} + + diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..fad0c09 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx1g -- 1.7.5.4