forked from concretesolutions/mock-api
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle
90 lines (76 loc) · 2.25 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
buildscript {
ext {
springBootVersion = '2.0.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'jacoco'
apply plugin: 'docker'
apply plugin: 'findbugs'
//apply plugin: 'checkstyle'
findbugs {
sourceSets = [sourceSets.main]
ignoreFailures = true
effort = "default"
reportLevel = "high"
}
//checkstyle {
// toolVersion = '8.3'
// sourceSets= [sourceSets.main]
// ignoreFailures = true
//}
version = '4.0.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile 'org.springframework.boot:spring-boot-starter-hateoas'
compile 'org.springframework.boot:spring-boot-starter-webflux'
compile 'com.google.code.gson:gson'
compile 'javax.ws.rs:javax.ws.rs-api:2.0'
compile 'net.minidev:json-smart:1.0.8'
compile 'com.google.guava:guava:22.0'
compile 'org.modelmapper:modelmapper:0.7.5'
compile 'commons-io:commons-io:2.5'
compile 'org.apache.httpcomponents:httpclient:4.4.1'
compile 'org.apache.commons:commons-lang3:3.7'
testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'io.projectreactor:reactor-test'
testCompile 'br.com.six2six:fixture-factory:3.1.0'
}
bootRun {
String activeProfile = System.properties['spring.profiles.active']
systemProperty "spring.profiles.active", activeProfile
}
task codeCoverageReport(type: JacocoReport) {
executionData fileTree(project.rootDir.absolutePath).include("**/build/jacoco/*.exec")
sourceSets sourceSets.main
reports {
xml.enabled true
xml.destination "${buildDir}/reports/jacoco/report.xml"
html.enabled false
csv.enabled false
}
}
task buildDocker(type: Docker, dependsOn: build) {
push = false
applicationName = 'elemental-source/' + jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}