-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild.gradle
54 lines (44 loc) · 1.13 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
plugins {
id "org.sonarqube" version "2.7"
id "com.github.kt3k.coveralls" version "2.6.3"
}
apply plugin: 'war'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'jacoco'
group = 'com.gourav'
version = '0.0.1-SNAPSHOT'
description = """restApi"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-mongodb', version:'2.1.1.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'2.1.1.RELEASE'
testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'2.1.1.RELEASE'
}
sourceSets {
main {
resources {
srcDirs "src/main/resources-local"
}
}
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport
sonarqube {
androidVariant 'fullDebug'
}
coveralls {
jacocoReportPath 'build/reports/jacoco/test/jacocoTestReport.xml'
}