Add the simple Gradle infrastructure necessary to build and test the project
This commit is contained in:
parent
b1b57da354
commit
18c99ad79c
|
@ -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
|
||||
////////////////////////////////////////////////////////////////////////////////
|
|
@ -0,0 +1,3 @@
|
|||
org.gradle.daemon=true
|
||||
bintrayUser=
|
||||
bintrayKey=
|
|
@ -0,0 +1,2 @@
|
|||
package com.github.lookout.verspaetung
|
||||
|
Loading…
Reference in New Issue