-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle
108 lines (86 loc) · 3.82 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
plugins {
// Apply the java plugin to add support for Java
id 'java'
id 'application'
id 'com.jfrog.bintray' version '1.8.1' apply false
}
//---------------------------------------------------------------------------//
// Configuration //
//---------------------------------------------------------------------------//
group = 'org.radarcns'
version = '0.4.0'
mainClassName = 'org.radarcns.RadarBackend'
applicationDefaultJvmArgs = ["-Dlog4j.configuration=log4j.properties"]
targetCompatibility = '1.8'
sourceCompatibility = '1.8'
ext {
moduleDescription = 'Kafka backend for processing device data.'
githubRepoName = 'RADAR-Base/RADAR-Backend'
githubUrl = 'https://github.com/' + githubRepoName + '.git'
issueUrl = 'https://github.com/' + githubRepoName + '/issues'
website = 'http://radar-base.org'
codacyVersion = '4.0.2'
confluentVersion = '5.0.0'
hamcrestVersion = '1.3'
kafkaVersion = '2.0.0-cp1'
jacksonVersion = '2.9.6'
javaMailVersion = '1.6.1'
junitVersion = '4.12'
findbugVersion = '3.0.2'
commonsCliVersion = '1.4'
mockitoVersion = '2.19.1'
radarCommonsVersion = '0.10.0'
radarSchemasVersion = '0.4.0'
subethamailVersion = '3.1.7'
jsoupVersion = '1.11.3'
slf4jVersion = '1.7.25'
log4jVersion = '1.2.17'
avroVersion = '1.8.2'
}
//---------------------------------------------------------------------------//
// Sources and classpath configurations //
//---------------------------------------------------------------------------//
// In this section you declare where to find the dependencies of your project
repositories {
mavenCentral()
// Non-jcenter radar releases
maven { url 'http://dl.bintray.com/radar-cns/org.radarcns' }
// Kafka/confluent releases
maven { url 'http://packages.confluent.io/maven/' }
// For working with dev-branches
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' }
// Github code
maven { url 'https://jitpack.io' }
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile group: 'org.radarcns', name: 'radar-commons', version: radarCommonsVersion
compile group: 'org.apache.avro', name: 'avro', version: avroVersion
compile group: 'org.radarcns', name: 'radar-commons-testing', version: radarCommonsVersion
compile group: 'org.radarcns', name: 'radar-schemas-commons', version: radarSchemasVersion
// Kafka streaming API
compile group: 'org.apache.kafka', name: 'kafka-streams', version: kafkaVersion
compile (group: 'io.confluent', name: 'kafka-streams-avro-serde', version: confluentVersion) {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'log4j', module: 'log4j'
exclude group: 'jline', module: 'jline'
exclude group: 'io.netty', module: 'netty'
}
// Nonnull annotation
compile group: 'com.google.code.findbugs' , name: 'jsr305' , version: findbugVersion
// Command-line interface
compile group: 'commons-cli', name: 'commons-cli', version: commonsCliVersion
// Configuration @JsonProperty
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: jacksonVersion
// Monitor mail sending
compile group: 'javax.mail', name: 'javax.mail-api', version: javaMailVersion
compile group: 'com.sun.mail', name: 'javax.mail', version: javaMailVersion
// JSoup html parser
compile group: 'org.jsoup', name: 'jsoup', version: jsoupVersion
runtimeOnly group: 'log4j', name: 'log4j', version: log4jVersion
runtimeOnly group: 'org.slf4j', name: 'slf4j-log4j12', version: slf4jVersion
}
if (!hasProperty('profile')) {
ext.profile = 'dev'
}
apply from: "gradle/profile.${profile}.gradle"