Add the simple Gradle infrastructure necessary to build and test the project

This commit is contained in:
R. Tyler Croy 2015-01-09 15:55:35 -08:00
parent b1b57da354
commit 18c99ad79c
3 changed files with 74 additions and 0 deletions

69
build.gradle Normal file
View File

@ -0,0 +1,69 @@
plugins {
id "com.jfrog.bintray" version "1.0"
}
apply plugin: 'groovy'
apply plugin: 'application'
group = "com.github.lookout"
description = "A utility for monitoring the delay of Kafka consumers"
version = '0.1.0-SNAPSHOT'
mainClassName = 'com.github.lookout.verspaetung.Main'
////////////////////////////////////////////////////////////////////////////////
// TESTING
test {
testLogging {
/* we want more test failure information, see:
* <http://mrhaki.blogspot.com/2013/05/gradle-goodness-show-more-information.html>
*/
exceptionFormat = 'full'
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// DEPENDENCY MANAGEMENT
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.9+'
compile 'org.apache.curator:curator-client:jar:2.4.0'
compile 'org.apache.kafka:kafka_2.10:0.8.1.+'
testCompile 'org.spockframework:spock-core:0.7-groovy-2.0'
testCompile 'cglib:cglib-nodep:2.2.+'
}
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/* Make sure we run tests before building our package */
assemble.dependsOn test
bintray {
user = project.bintrayUser
key = project.bintrayKey
publish = true
dryRun = false
configurations = ['archives']
pkg {
userOrg = 'lookout'
repo = 'systems'
name = 'verspaetung'
labels = []
version {
name = project.version
vcsTag = "v${project.version}"
desc = project.description
}
}
}
bintrayUpload.dependsOn assemble
////////////////////////////////////////////////////////////////////////////////

3
gradle.properties Normal file
View File

@ -0,0 +1,3 @@
org.gradle.daemon=true
bintrayUser=
bintrayKey=

View File

@ -0,0 +1,2 @@
package com.github.lookout.verspaetung