This repository has been archived by the owner on Nov 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
112 lines (92 loc) · 3.16 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
////////////////////////////////////////////////////////////////////////////////
// PLUGIN CONFIGURATION
////////////////////////////////////////////////////////////////////////////////
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:[1.3.1,1.4)'
classpath 'io.ratpack:ratpack-gradle:[0.9.19,1.0)'
classpath 'com.github.jengelman.gradle.plugins:shadow:[1.2.2,1.3)'
}
}
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'io.ratpack.ratpack-groovy'
apply plugin: 'com.github.johnrengelman.shadow'
////////////////////////////////////////////////////////////////////////////////
version = '0.3.1'
group = 'offtopic'
description =' Offtopic is a simple web application built with Ratpack for inspecting and consuming events from Kafka.'
defaultTasks 'check', 'assemble'
////////////////////////////////////////////////////////////////////////////////
// DEPENDENCY AND REPOSITORY MANAGEMENT
////////////////////////////////////////////////////////////////////////////////
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:[2.4.4,2.5)'
compile 'io.ratpack:ratpack-handlebars:[0.9.19,1.0)'
compile 'io.ratpack:ratpack-jackson:[0.9.17,1.0)'
compile 'io.ratpack:ratpack-codahale-metrics:[0.9.19,1.0)'
/* Needed for discovering brokers and all kinds of other things in
* Zookeeeper
*/
compile 'org.apache.curator:curator-framework:[2.7.1,2.8)'
compile 'org.apache.commons:commons-pool2:[2.2,3.0)'
/* For logging at runtime */
compile 'ch.qos.logback:logback-parent:[1.1.3,2.0)'
compile 'org.apache.kafka:kafka_2.11:0.8.2.1'
// Forcing us up to ZK 3.5 to prevent wacky classpath errors when mixing
// and matching dependencies
compile 'org.apache.zookeeper:zookeeper:3.5.1-alpha'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'cglib:cglib-nodep:[2.2.2,2.3)'
}
////////////////////////////////////////////////////////////////////////////////
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
run {
systemProperty 'zookeepers', 'localhost:2181'
dependsOn check
}
assemble.dependsOn shadowJar
artifacts {
archives shadowJar
}
////////////////////////////////////////////////////////////////////////////////
// RELEASING
////////////////////////////////////////////////////////////////////////////////
bintray {
user = project.bintrayUser
key = project.bintrayKey
publish = true
dryRun = false
configurations = ['archives']
pkg {
userOrg = 'rtyler'
repo = 'maven'
name = 'offtopic'
labels = ['kafka', 'offtopic', 'ratpack', 'groovy']
version {
name = project.version
vcsTag = "v${project.version}"
desc = project.description
}
}
}
bintrayUpload.dependsOn assemble
////////////////////////////////////////////////////////////////////////////////
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
// vim: ft=groovy