-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (68 loc) · 2.2 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
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: "org.sonarqube"
apply plugin: "jacoco"
group = 'com.adsizzler.mangolaa'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
final String VERSION = "1.0"
final vertxVersion = "3.5.0"
repositories {
mavenCentral()
}
version = VERSION
jar{
baseName = "kc-impressions-storage"
version = VERSION
}
configurations {
providedRuntime
//Has often caused problems, we will just exclude this dependency altogether
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
jacocoTestReport {
group = "reporting"
description = "Generate Jacoco coverage reports after running tests."
reports {
xml.setEnabled false
csv.setEnabled false
html.destination new File("${buildDir}/jacocoHtml")
}
}
test.finalizedBy jacocoTestReport
//To run the jar file a Linux service
springBoot {
executable = true
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '23.6-jre'
//Spring Boot
compile('org.springframework.boot:spring-boot-starter')
runtime('org.springframework.boot:spring-boot-devtools')
compile('org.springframework.boot:spring-boot-starter-data-cassandra')
//GROOVY
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.13'
//Vertx
compile group: 'io.vertx', name: 'vertx-core', version: vertxVersion
compile group: 'io.vertx', name: 'vertx-kafka-client', version: vertxVersion
//Misc
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.9.4'
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4'
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.1-groovy-2.4'
testCompile('org.springframework.boot:spring-boot-starter-test')
}