-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
98 lines (84 loc) · 2.7 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
buildscript {
ext {
springBootVersion = '1.5.7.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "org.sonarqube" version "2.4"
id 'io.franzbecker.gradle-lombok' version '1.10'
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: "jacoco"
apply plugin: 'war'
sonarqube {
properties {
property 'Spring-Factory', 'Factory data management tool'
}
}
lombok {
version = "1.16.4"
sha256 = "3ca225ce3917eac8bf4b7d2186845df4e70dcdede356dca8537b6d78a535c91e"
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
providedRuntime
}
dependencies {
compile group: 'org.modelmapper', name: 'modelmapper', version: '1.1.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
compile group: 'org.apache.commons', name: 'commons-collections4', version: '4.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version: '1.5.6.RELEASE'
compile group: 'net.bull.javamelody', name: 'javamelody-core', version: '1.62.0'
compile ( "com.lowagie:itext:4.2.1"){
exclude group: "bouncycastle", module: "bcmail-jdk14"
exclude group: "bouncycastle", module: "bcprov-jdk14"
exclude group: "bouncycastle", module: "bctsp-jdk14"
}
compile("io.springfox:springfox-swagger2:2.8.0")
compile("io.springfox:springfox-swagger-ui:2.8.0")
compile('mysql:mysql-connector-java')
compile('org.springframework.boot:spring-boot-starter-security')
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-aop')
providedRuntime('org.springframework.boot:spring-boot-starter-tomcat')
testCompile group: 'com.h2database', name: 'h2', version: '1.4.196'
testCompile('org.springframework.boot:spring-boot-starter-test')
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = false
xml.destination "${buildDir}/reports/jacoco/report.xml"
}
}
sourceSets {
test {
java.srcDir 'src/test/java/unit'
}
integration {
java.srcDir 'src/test/java/integration'
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
configurations {
integrationCompile.extendsFrom testCompile
integrationRuntime.extendsFrom testRuntime
}
task integration(type: Test, description: 'Runs the integration tests.', group: 'Verification') {
testClassesDir = sourceSets.integration.output.classesDir
classpath = sourceSets.integration.runtimeClasspath
}