-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
70 lines (60 loc) · 1.6 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
group 'ignite-project'
version '1.0-SNAPSHOT'
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'se.transmode.gradle:gradle-docker:1.2'
}
}
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'docker'
apply plugin: 'com.github.johnrengelman.shadow'
sourceCompatibility = 1.8
ext {
igniteVersion = '2.2.0'
guiceVersion = '4.1.0'
jacksonVersion = '2.9.0'
logbackClassicVersion = '1.2.2'
rapidoidVersion = '5.4.4'
junitVersion = '4.12'
}
dependencies {
compile "org.apache.ignite:ignite-core:$igniteVersion"
compile "org.apache.ignite:ignite-indexing:$igniteVersion"
compile "com.google.inject:guice:$guiceVersion"
compile "com.google.inject.extensions:guice-multibindings:$guiceVersion"
compile "org.rapidoid:rapidoid-http-server:$rapidoidVersion"
compile "ch.qos.logback:logback-classic:$logbackClassicVersion"
testCompile "junit:junit:$junitVersion"
}
shadowJar() {
mergeServiceFiles()
exclude 'META-INF/.SF'
exclude 'META-INF/.DSA'
exclude 'META-INF/.RSA'
manifest {
attributes 'Main-Class': 'com.shaad.ignite.Main'
}
}
build.dependsOn shadowJar
task buildDocker(type: Docker) {
dependsOn build
push = false
applicationName = 'ignite'
dockerfile = file('etc/docker/Dockerfile')
doFirst {
copy {
from 'build/libs/ignite-' + version + '-all.jar'
into stageDir
}
}
}