-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
99 lines (78 loc) · 2.76 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
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}")
}
}
final String VERSION = "1.0"
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: "org.sonarqube"
apply plugin: "jacoco"
group = 'com.adsizzler.mangolaa'
sourceCompatibility = 1.8
version = VERSION
repositories {
mavenCentral()
}
jar{
baseName = "wins"
version = VERSION
}
final vertxVersion = "3.5.0"
configurations {
providedRuntime
//Has often caused problems, we will just exclude this dependency altogether
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
//To run the jar file a Linux service
springBoot {
executable = true
}
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
dependencies {
//Spring Boot
compile('org.springframework.boot:spring-boot-starter')
runtime('org.springframework.boot:spring-boot-devtools')
//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-dropwizard-metrics', version: vertxVersion
compile group: 'io.vertx', name: 'vertx-web', 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'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
//MySQL and H2
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.5.8.RELEASE'
runtime group: 'mysql', name: 'mysql-connector-java', version: '5.1.6'
runtime group: 'com.h2database', name: 'h2', version: '1.4.196'
//Misc
compile group: 'com.googlecode.cqengine', name: 'cqengine', version: '2.12.2'
//Testing
testCompile('org.springframework.boot:spring-boot-starter-test')
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 group: 'io.vertx', name: 'vertx-unit', version: vertxVersion
//Devops
compile group: 'com.aestasit.infrastructure.sshoogr', name: 'sshoogr', version: '0.9.26'
}