forked from criteo/mewpoke
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
69 lines (55 loc) · 1.99 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
// In order to get maven shade equivalent plugin (Uber Jar)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
plugins {
id 'org.ajoberstar.grgit' version '2.1.0'
}
group 'com.criteo.nosql'
version = grgit.describe()
version version
println "Building version: ${version}"
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
sourceCompatibility = 1.8
mainClassName = 'com.criteo.nosql.mewpoke.Main'
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// General utility
compile group: 'com.google.guava', name: 'guava', version: '22.0'
// Logging
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.21'
// YAML parser
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version:'2.8.9'
compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-yaml', version: '2.8.8'
// Consul
compile group: 'com.ecwid.consul', name: 'consul-api', version: '1.2.3'
// Memcached client
// Forks at https://github.com/criteo-forks/spymemcached
compile files('libs/spymemcached-2.12.3-criteo.jar')
// Prometheus
compile group: 'io.prometheus', name: 'simpleclient', version: '0.1.0'
compile group: 'io.prometheus', name: 'simpleclient_common', version: '0.1.0'
compile group: 'io.prometheus', name: 'simpleclient_httpserver', version: '0.1.0'
// Couchbase
// https://github.com/criteo-forks/couchbase-java-client/
// https://github.com/criteo-forks/couchbase-jvm-core
compile files('libs/couchbase-java-client-2.4.7-criteo.jar')
compile files('libs/couchbase-jvm-core-1.5.1-criteo.jar')
}
// If you don't use the uber jar
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version,
'Main-Class': mainClassName)
}
}