-
Notifications
You must be signed in to change notification settings - Fork 18
/
build.gradle
73 lines (63 loc) · 1.99 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
buildscript {
ext {
springBootVersion = '1.5.4.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: 'jacoco'
apply plugin: 'docker'
version = '4.0.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.boot:spring-boot-starter')
compile 'org.springframework.boot:spring-boot-starter-undertow'
compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-hateoas'
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 'com.squareup.okhttp3:okhttp:3.8.1'
testCompile 'org.springframework.boot:spring-boot-starter-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 = 'concretesolutions/' + jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}